
Hi @mikemike,
You can’t really do this without writing your own AJAX script and populating the dropdowns yourself when a menu etc. has been selected.

Hi @cronius,
To be clear, you mean that you cant use any fields in an options page before syncing manually?

Hi,
I somewhat like this idea. However there’s an issue with how this would play out when going back and editing a field in the field group admin. They’d had to be saved as special values connected to each single page/posts repeater but not actually replace the field labels you’ve set in the field group admin.
Practically speaking those values are just the same as the repeater values really. I’ll assign this to Elliot so he can give his two cents. Personally I can see a use for it but I’m not sure if it’s broad enough to put in time on.

Hi @nicmare,
Actually there is such a function 🙂
get_field_objects()
http://www.advancedcustomfields.com/resources/get_field_objects/

Hi @acha5066 ,
Try removing the_row() from after the if-statement.

Hi @architbjoshi,
I’m guessing by start date and end date fields you’re referring to two date fields you’ve created.
Unfortunately there’s no such logic built into ACF.
Your only option is to insert your own script on your admin page with which you update the datepicker options.
You can use this filter to add your custom script file:
http://www.advancedcustomfields.com/resources/acfinputadmin_enqueue_scripts/
And then you’ll need to check when either start or end date input has been changed and modify the other field accordingly.
//To set a minimum date (back in time)
jQuery( '.acf-field-UNIQUEID .acf-date_picker input.input' ).datepicker( 'option', 'minDate', date.format() );
//To set a maximum date (forward in time)
jQuery( '.acf-field-UNIQUEID .acf-date_picker input.input' ).datepicker( 'option', 'maxDate', date.format() );

Hi @cdiscla,
Assuming you use the relationship field for selecting the posts you can use this filter to modify the query to only fetch posts with show_in_news set to 1/true:
http://www.advancedcustomfields.com/resources/acf-fields-relationship-query/


Okay,
Can you post some screenshots of your options page.
Also, what exactly are you referring to when you say “multilingual content set up”?

Great to hear 🙂 @scisterna if you also find it to resolve your issues please mark it as an answer so future visitors may find it easily.

Hi everyone.
The issue here is that update_sub_field does exactly what it says. It updates an existing sub field but does not have the ability to create a new one.
Have a look at my sample code here for a solution:
http://support.advancedcustomfields.com/forums/topic/create-new-repeater-row-from-front-end-form/

Hi,
Unfortunately no. The image field and file field are just wrappers for WordPress own media library functionality.
If you don’t have too many files you could add them as a custom select dropdown.
Just add the file URL as the value and file name as label.
Then when you fetch the field you’ll get the file URL directly.

Hi,
Your example link seems to work for me.
@tarfoot and @andrew-croce could you post the errors you’re getting?
And just to be clear. You’re getting this issue just having the latest ACF and GF plugins activated? Not trying to integrate them in any way.

Alright that’s another way to go 🙂
For me it was just 8 rows in each post (thousands of posts tho). It works like a charm but would of course break if elliot ever decides to change the actual DB value of the repeater field. I’ll save that for a rainy day.

Hi,
If you have a select field without multiple select it should just return a value not an array..
This code might get you in the right direction:
<?php
$activity_rating = get_field('activity_rating');
switch($activity_rating){
case '1':
$img = 'urltoimage';
break;
case '2':
$img = 'urltoimage2';
break;
case '3':
$img = 'urltoimage3';
break;
case '4':
$img = 'urltoimage4';
break;
case '5':
$img = 'urltoimage5';
break;
case default:
$img = 'fallbackimage';
break;
echo '<img src="' . $img . '" alt="" />';
}
?>

Hi @paulgc34
Probably not in this point of time.
I think it goes a bit outside the scope of what core ACF should do.
However if there are a third party plugin which works just fine you can just as well use that! 🙂

Hi @joesmalley
May I ask why you’re not simply using the gallery field instead? It’s pretty much the same for output but you get a nice UI with easier drag’n’drop for reordering your images.

Assigning this to Elliot so he can make a judgement call 🙂

Hi @sethta
You might want to have a look at this documentation article: http://www.advancedcustomfields.com/resources/including-acf-in-a-plugin-theme/

Hi @powcom,
Natively the answer is no. There’s no way to do that.
However you could create your own plugin for this.
Create a custom admin page. In it you do a wp_query for all posts (or any post type) which contains the data you want to be able to edit. Output them as a table list with the inputs you need (this could get tricky if you have many different field types but if it’s just inputs, editors etc. it would be fairly simple. Then on posting your custom form table just do the logic necessary to update each posts information.
I think this would be a pretty great idea for a third party plugin. The biggest issue that I can think of is how to make it dynamic.. One would probably want to be able to set in some settings which field groups to do the wp_query on or maybe do it dynamically on the custom admin page before the wp_query even runs.

Hi,
Are the second image of the field group admin?
There are quicklinks for the necessary actions in the latest versions of ACF.
actions like “view” and “quick edit” are not applicable to field groups but they have a delete action and an regular edit action.

Hi @vueloiv
Could you also post your get_global_option function?
The issue would be in there somewhere I believe.

Just to be safe try this:
$repeater = get_field('product_category_row');
$count = count($repeater);

Hi @roura356a
You say you have ACF and the repeater addon.
Have you considered getting the ACF Pro plugin instead? If you’ve purchased the repeater addon you should be eligible for a free upgrade from your account page.
I’ve used date pickers inside repeaters with ACF 5 (pro) and it has worked for me so I think that would solve your problem (and give you more and better functionality).

Hi @shafaiz
It seems you’re getting help from the plugin author now so I’ll consider this topic closed.
In any case the issue is completely with the third party plugin so you did right from the beginning seeking help there rather than this forum 🙂
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.