Thanks Elliot for the response. I did that for temporary fix. I did create new install wp in my local mamp and dump a sql for backup. Install acf4 and import all the xml files then upgrade/install acf5.
Anyways just a wishlist much better if acf5 will be backward compatible with acf4 xml.
Hi Elliot & drs-nyc,
I did try to use the acf_get_field_groups() function to check if the field group exist it did work fine and it will check if the field is existing or not, but it will cause register_field_group() function not to work or it will skip/it will not load the field group. Also I did try your suggestion to add the acf_disable_local() function still not working.
Please see code below.
class helper{
//helper function
public static function is_field_group_exists($value, $type='title') {
$exists = false;
if ($field_groups = acf_get_field_groups()) {
foreach ($field_groups as $field_group) {
if ($field_group[$type] == $value) {
$exists = true;
}
}
}
return $exists;
}
}
//use
if (!helper::is_field_group_exists('Field Group Title')) :
// load acf exported php
require_once (dirname(__FILE__) . '/includes/' . $acf_version . '/acf-field-group-exported.php');
endif;
I quickly looked under the hood and found a few things about my issue:
– The ‘save_post’ hook isn’t firing when I update a Page. Not sure exactly why…documentation is slim even though this is a common problem…but perhaps we should hook the acf_admin_field_group::save_post() method to ‘pre_post_update’ instead?
– The ‘field_group’ nonce can fail when there are multiple field groups. This writes multiple ‘_acfnonce’ hidden inputs to the page’s form. The last input value stomps the other nonce values (which don’t appear in the POST params). Perhaps the _acfnonce value should be keyed to each particular field group?
I would be happy to contribute code to fix these issues if you give the thumbs up, Eliot.
Hope that helps.
Harold

I know this is not a help right now, but I see the same issues with the way other ML plugins work.
I am in the process of building a multisite plugin that works completely different to the way the standard WP multisite setup works. My idea is that you edit a single page that can appear on multiple sites and that you can specify alternate content to appear on each of those sites. One editor == multiple pages with different content. My plan is to also create a “Multilingual” addon. My idea will require the use of sub-domains for creating each language site and will not support a sub-folder structure for languages.
But, I am building this plugin using ACF to build it and it takes into account all the things that ACF does specifically. Since I’m using ACF to do the building it will always need to be up to day with what ACF is doing.
I also plan on it being extremely focused, I’m not going to be building in any extra fluff. The reason is that I’m building my plugin to be an aid in developing sites and assume that it will be used mostly by developers that can handle adding what they need. Just the backbone that makes the whole multisite thing work.
Like I said, not much help today. But I too do nothings without using ACF to do it and the fact that most of the other plugins available to not work and play well with ACF is a huge issue for me.
Tried that aswell, as I said in my previous reply, but that simply returns the ‘Projects’ posts and not the ‘Artist’ posts that relate to the queried ‘Project’
What additional information is required.
When activating the “Posts Types Order” plugin, the “page links” feature of the ACF does not work.
Instead it shows the words “Not working”. There is no PHP or JS errors that can be seen on the console or the browser.
If the “Posts Types Order” plugin is deactivated, the “page links” feature of the ACF works fine.
However it both plugin worked together prior to updating to the Pro edition when using WordPress 3.9 (I haven’t tested the old version of ACF on WordPress 4.0).
I’m using:
Its quite a popular plugin so I’m surprised it did not work.
Thanks
It can’t exist at that URL.
http://localhost/fs/website_name/wp-content/plugins/Users/Storm/Sites/fs/website_name/wp-content/themes/theme_name/_includes/acf-pro/inc/datepicker/jquery-ui-1.10.4.custom.min.css?ver=5.0.8
As you can see above, the first part of the URL looks into the /plugins dir. Then the URL starts at /Users after that, which is the URL that $path is returning with get_stylesheet_directory(). It should wipe that whole URL and just start from http://
To see what was going with $path, I tested the following:
$path = get_stylesheet_directory() . "/_includes/acf-pro/";
print_r($path)
returns
/Users/Storm/Sites/fs/swiftcarbon/wp-content/themes/swiftcarbon-theme/_includes/acf-pro/
$path = get_template_directory_uri() . "/_includes/acf-pro/";
print_r($path)
returns
http://localhost/fs/website_name/wp-content/themes/theme_name/_includes/acf-pro/
With get_template_directory_uri(), there are no errors reported, so presumably it’s finding the files it needs, but then Custom Fields menu item disappears from the WP admin sidebar.
Hi,
I was wondering the same thing and found the answer here: http://wordpress.stackexchange.com/questions/78649/using-meta-query-meta-query-with-a-search-query-s
It has a few extra steps but gets the job done.
Also, I noticed a little hiccup in my case. When the search was supposed to return nothing, it returned all posts. I solved the problem by wrapping the loop between an IF statement, like:
if(!empty($unique)) {
//wp_query here
}
For some reason, wp_query was returning all posts when post__in was an empty array.
Hope that helps!

you can you relation field value for filter query, use post__in parameter in query
Thanks Navid,
The code you posted is something that I have at the moment, yes it lists all of the projects, but the issue is that I can’t figure out what should I add in the WP_Query, tried 'post_type' => array('projects','artists') but the issue is that that code would list the ‘projects’ posts, and not the related posts.

this plugin can be only 2 option for get list:
– get from a repeater field created in option page (ACF Pro)
– get from a post (single post ID)
i read again your problem, this field doesn’t for you.
you can create a small query like relationship field and then create you select list. something like this:
<?php $args = array(
'posts_per_page' => 5,
'offset' => 0,
'category' => '',
'orderby' => 'post_date',
'order' => 'DESC',
'include' => '',
'exclude' => '',
'meta_key' => '',
'meta_value' => '',
'post_type' => 'post',
'post_mime_type' => '',
'post_parent' => '',
'post_status' => 'publish',
'suppress_filters' => true ); ?>
<?php $posts_array = get_posts( $args ); ?>
<select>
<?php foreach ( $dynamicposts as $post ) : setup_postdata( $post ); ?>
<option value="<?php echo get_permalink(); ?>"><?php echo get_permalink(); ?></option>
<?php endforeach; ?>
</select>
<?php wp_reset_postdata(); ?>
If I understand this correctly… In acf.php:
if( is_admin() && !ACF_LITE )
{
add_action(‘admin_menu’, array($this,’admin_menu’));
The function above hooks a function called “admin_menu”, which is further down the file.
function admin_menu()
{
add_utility_page(__(“Custom Fields”,’acf’), __(“Custom Fields”,’acf’), ‘manage_options’, ‘edit.php?post_type=acf’);
}
Is this what you’re looking for? Also, I double checked: my account role is Admin.
Although, the “/edit.php?post_type=acf” trick is just the workaround I need! Hopefully we can get to bottom of the missing menu button problem, though (if not for my sake, then for others’).
I appreciate all of your help!

Hi @Bones
Great question. I should realy add this to the docs, but for now, please add the following inline JS to your popup HTML (below the acf_form call)
<script type="text/javascript">
(function($) {
// setup fields
acf.do_action('append', $('#popup-id'));
})(jQuery);
</script>
* change ‘#popup-id’ to the selector which will target the popup HTML element
Thanks
E

Hi @fountain
Please find the following tutorial for querying sub field values:
http://www.advancedcustomfields.com/resources/querying-the-database-for-repeater-sub-field-values/
If the code ends up becoming a performance issue, or is simply too complicated and difficult to understand, please consider creating a new post type called ‘wine-video’. Each wine-video post could contain the video, wines, etc and would allow for much more simple and basic WP querying!
Cheers
E

Hi @tnchuntic
Thanks for the question. I would recommend that you setup a WP + ACF4 site and import your .xml field groups. Then upgrade to ACF PRO and run the DB upgrade too. Now you can export the field groups to .json!
Hope that helps.
Thanks
E

Hi @Giu Tae Kim
Thanks for the question. Honestly, I have not yet done much testing with multi-site, but I don’t see why it wouldn’t work. Multi-site does not change any meta functions, so ACF PRO should work just fine.
Currently, ACF PRO requires a DB upgrade from ACF v4. This upgrade will only run on the current website (no multi-site compatibility yet). You will need to login to each sub site and run the DB upgrade prompt.
That should be it!
Cheers
E

Hi @OsakaWebbie
Thanks for the question. I don’t believe this is possible unfortunately.
ACF piggy backs the core media uploader for all file/image uploading functionality. It may be possible to find some filters/actions on google which allow you to modify the directory / file name, but these would be core filters/actions, not ACF ones.
Thanks
E

The second 4 values are repeated on the left side. The values need to be unique.
@Elliot Condon
Thanks for your help.
Definitely nothing in the db.
Digging into the json – the repeater’s field ID seems to be duplicated in two of the field group json files.
Is it possible to adjust without losing the content that has already been loaded?
The sub-fields of the repeater are unique across both field groups.
Cheers,
Matt
Hey Elliot,
I did a quick test and this seems to be working. Thanks for the great plugin.
Transfer Your Key Possessions via Recognized Shifting Agency
Right now, types of reasons behind transferring collected from one of spot to yet another. A few of these tend to be: modify inside the career, exchange associated with task in order to some other place, regarding increasing the best of life, getting greater setting as well as some people. That’s why, it is necessary you understand before hand as to the reasons you need to shift towards the additional location. It’s also crucial in respect of whether or not the transferring organization offers those with your related data as well as certainly not with regard to changing the items. Even more, it’s also possible to see the on the net critiques regarding earlier shoppers as a way to understand the particular standing regarding transferring business.
Do you need a corporation which supplies the most look after ones non commercial merchandise? If the response can be indeed, you may look through various websites as well as determine what their own rewards. It’s also sensible to guarantee your relocating organization you obtain provide you with the particular ensure to your household things. This way, generally there could well be hassle-free movements regarding housing physical objects along with in a very much more greater approach. To recognise within a much more distinct fashion, supply a telephone for you to different changing corporations and choose any particular one gives the particular successful services for example running, unloading, the labels together with rearrangement involving things.
Article Provided By
Packers and Movers Hyderabad
For more Information Please Visit
http://6th.in/packers-and-movers-hyderabad/
Transfer You Residence Stuff by Expert Shifting Companies
Aside from the switching involving items, there are many firms which provide the particular packing, unloading, appearance in addition to rearrangement amenities in a reasonable price tag. For this reason, go with a company which supplies persons with all the current previously mentioned products and services and also prior to their particular will need. It is necessary an individual inquire your shifting corporation whenever they provide you with the following gross sales products and services with the things or maybe not really. This way, your physical objects could well be altered with the ideal fashion and also using the element men and women. It’s also possible to find the endorsement through the well-experienced transferring professionals so as to recognize that treatments they will undertake intended for transferring materials.
If you need to learn regarding that relocating corporation provides effective switching amenities, and then don’t feel a lot along with look through a number of the well-known going organizations Additionally it is crucial anyone locate a transferring organization gives the globe type answers pertaining to transferring the many items in addition to being each your decision. Furthermore, research many of the on-line shifting companies as well as realize what kind supplies the extraordinary moving features for a realistic value. Previous, and not the smallest amount of investigate a few of the regional organizations and find that you which can be handiest with offering the particular transferring products and services.
Article Provided By
Packers and movers Bangalore
For more Information Please Visit
http://www.localpackersmoversinbangalore.in/
Move You Dwelling Stuff by Specialized Shifting Firms
Aside from the transferring involving things, there are many businesses that offers your running, unloading, presentation together with rearrangement amenities with a cost-effective price tag. Therefore, select a agency which gives folks because of the preceding products and services as well as relative to their particular require. It is necessary anyone request your transferring business as long as they give you the immediately after gross sales solutions for that products or perhaps not really. This way, the actual things could well be changed inside ideal fashion along with in line with the feature individuals. You may also obtain the professional recommendation from your well-experienced relocating gurus so as to realize which in turn treatments that they follow pertaining to switching materials.
If you would like understand concerning which in turn relocating corporation supplies the effective transferring features, and then don’t imagine very much along with surf a number of the esteemed relocating businesses Additionally it is crucial an individual search for a moving corporation gives the planet course alternatives pertaining to relocating different materials so when for every your option. In addition, lookup many of the on-line transferring businesses along with realize which provides extraordinary moving amenities in a fair value. Final, but is not the very least examine many of the regional firms and get that you that’s handiest within giving your moving providers.
Article Provided By
Packers and Movers In Pune
For more Information Please Visit
http://6th.in/packers-and-movers-pune/
Move You Dwelling Items via Veteran Relocating Agencies
In addition to the switching connected with items, there are several firms that offers your launching, unloading, presentation together with rearrangement amenities from a cost-effective selling price. That’s why, pick a organization which gives folks considering the over products and services in addition to prior to the need to have. It is necessary people inquire this going business should they supply the following gross sales solutions for that items or maybe not really. This way, this materials could be changed within the ideal method in addition to using the feature men and women. It’s also possible to find the endorsement in the well-experienced shifting gurus so as to realize that techniques many people embrace with regard to transferring goods.
If you would like understand regarding that transferring firm affords the effective switching services, after that don’t imagine significantly along with look through a lot of the most respected relocating organizations It is usually critical an individual search for a switching organization which gives the earth category answers regarding shifting different things and since for every your option. Additionally, lookup many of the on the web transferring organizations along with recognize which supplies the excellent moving establishments with a fair value. Past, but is not minimal examine a lot of the regional organizations and get that particular and that is handiest with supplying your transferring providers.
Article Provided By
Packers and Movers In Bangalore
For more Information Please Visit
http://6th.in/packers-and-movers-bangalore/
Move You Own Home Stuff via Qualified Relocating Firms
Independent of the moving associated with items, there are many businesses that offers the particular running, unloading, presentation along with rearrangement amenities with a cost-effective price tag. Consequently, select a agency gives men and women considering the earlier mentioned providers along with prior to their particular need to have. It is necessary a person inquire the actual shifting business should they supply the right after gross sales solutions for that things as well as not necessarily. In this manner, this materials will be altered inside the perfect fashion as well as good element folks. You may also receive the endorsement from your well-experienced going specialists to be able to understand which often processes many people embrace regarding moving the products.
In order to realize concerning that relocating firm supplies the useful transferring services, subsequently don’t imagine very much as well as look through a lot of the most respected transferring firms It is usually significant an individual choose a changing agency which supplies the entire world type answers pertaining to transferring the different items so when each your decision. In addition, research a lot of the on-line going corporations as well as understand what type supplies the outstanding moving features at the affordable cost. Previous, and not the lowest amount of discover a few of the community organizations and get any particular one that’s most effective inside providing the particular changing providers.
Article Provided By
Packers and Movers In Mumbai
For more Information Please Visit
http://6th.in/packers-and-movers-mumbai/
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.