Hi @hungrysquirrel,
Something like this?
$currMonth = "start"
foreach( $repeater as $row ) :
{
$date = DateTime::createFromFormat('Ymd', $row['race_date']);
if(currMonth != $date->format('F'))
echo '<h2>' . $date->format('F') . '</h2><br>';
$currMonth = $date->format('F');
endif
echo '<li>' . $row['race_name'] . '</li>';
echo '<li>' . $date->format('m-d-Y') . '</li>';
}
endforeach;
Hi @moralejf,
Try using get_fields($post_id)
where the $post_id is a page_id where the banner is working
Cheers
Hi there!
I’m presuming each citation is it’s own post? If so, the following should work.
$posts = get_field('select_articles');
if( $posts ):
foreach( $posts as $post): // variable must be called $post (IMPORTANT)
setup_postdata($post);
the_title();
the_content(); //print and format how and what you want from the citation post
endforeach;
wp_reset_postdata(); // IMPORTANT - reset the $post object so the rest of the page works correctly
endif;
Adapted from http://www.advancedcustomfields.com/resources/field-types/relationship/
Let me know how you get on 🙂
Hi,
Can you please check your browser console for errors?
Cheers
Hi @anielsen,
Are you using get_field to fetch the image?
Please try a var_dump(get_field('image-field-name'))
Is it dumping different things when you change the return value?
Cheers
Hi @cyberwani,
Yes that is fine:
http://www.advancedcustomfields.com/resources/getting-started/including-acf-in-a-plugin-theme/
Thanks for using ACF in your theme 🙂
Hi @s@Steveorevo,
Thanks for tracking down the source for this one! I’ve passed a note onto Elliot.
Cheers!!
Hi @hungrysquirrel,
It is possible to sort by date with the above method.
Let me know if you have any problems 🙂
Cheers
Hi @andrefelipe,
Thankyou for your request! It has been added to a report for Elliots attention
Have a nice day
Hi @bmscmoreira,
Can you please try deactivating your plugins, and see if the button works as expected? If so, could you enable each plugin one at a time to find the problematic one?
If this is not the problem, just post back here!
thanks
Hi @royallthefourth,
When you say you extracted it to the plugins directory, did you do this manually on the server, or by using WordPress plugins->add new->upload?
cheers
Yes, sorry! My mistake
Hi again,
Can you please wrap your code in back ticks so that it is easier to read?
I am still not 100% on what you are trying to achieve because that code is looping through a sub field.
Sorry mate, sometimes it can be hard to get the full idea via a forum. 🙁
Hi @emaildano,
Can I get some more info to what is happening on save please?
Are you getting any PHP errors in your logs or in the browser?
Hi @kurdt_the_goat,
This could be a plugin clash, can you disable any other plugins and see if that fixes the issue?
Hi @lowercase,
Have a read through this:
http://www.advancedcustomfields.com/resources/field-types/relationship/
Cheers
Hi @Spathon,
Please tell me if this:
http://support.advancedcustomfields.com/forums/topic/slow-page-load-w-page-links/
answers your question. If not, just reply back here.
Cheers
Hi @kwoodall,
Would you consider implementing the original solution?
If not, I was talking about getting all the results and manually sorting them, which is much more difficult.
Cheers
Hi @epstein,
I cannot see any problems with your code here. Could you try doing a var_dump(get_sub_row('banner_1'));
?
My feeling is that the images are not being stored correctly.
Cheers
Hi @smallpirate,
The drag and Drop functionality should be deciding the order within a field group.
Have you checked to see if the fields come out in order before you put them into the flexi-slider?
Cheers
I’m sorry @Tim Triplett, Can you be a little clearer in exactly what youre trying to do?
From what I gather, you are trying to do what is demonstrated in example 2 of the tutorial?
Cheers
Hi @vicdilu,
I’m sorry, but multiple dates from one picker are not supported at this time.
Have a nice day
Hi @kwoodall,
setting the meta_key to ‘crfp-average-rating’ wont return any vendors that do not have that field. Depending on your setup, you could go with the suggestion above, or there may be a way to have no meta_key if ‘vendor-type’ only contains vendors you want displayed.
cheers
Hi @mccreath,
There must be a conflict on the clients machine that is not present on yours. What has the client got/lacking that your dev machine does/not have?
Cheers
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.