Any ideas how this would be done with nested repeaters?
I’ve created a thread here which contains my code:
https://support.advancedcustomfields.com/forums/topic/nested-repeaters-using-get-post-meta/
Many thanks
No worries, I’ve found a solution.
$page_id = get_option( 'page_for_posts' );
$page_title = get_post_meta( $page_id, 'page_title', true );
Thanks
Hi James,
I appreciate your response and suggestions.
While the Reusable Field Group looks a really decent option, I am reluctant to go ahead and even experiment with this due to the following issue:
https://github.com/Hube2/acf-reusable-field-group-field/issues/29
The above issue is a heads up stating that Elliot has begun work on similar functionality. This sounds great! I completely understand it’s impossible to give any kind of ETA for this work to be ready, but, would you be able to give me an idea of the timescale? Will it be weeks or months?
Registering fields via php looks the best option for me as the plugin stands now. I understand how this can be done and I appreciate the link providing (the docs are amazing on the page!).
The only question I have regarding registering fields via php is about naming conventions for field group’s and field keys.
Do I need to follow the ACF naming convention, or can I use my own just as long the the keys are unique?
Thanks again,
Paul
I agree too, Yoast is a must for me and it’s massive down to be having issues with these two plugins together.
That being said, check out this post: http://support.advancedcustomfields.com/forums/topic/acf-yoast-seo-3-0/
That’s a pretty neat solution for Yoast 3
Hey,
I’ve been able to get flexible layouts, repeater fields, nearly everything working using the above approaches, thanks!
The final thing I can’t get Yoast to see is images. Do I need to write something other than:
$field1 = get_field( 'image', $post->ID );
To get Yoast to see images?
Any advice welcome.
Thanks in advance.
Paul
Hi, I don’t seem to be able to get this working using the following:
<?php if ( get_field( 'featured' ) ): ?>
<div class="featured">
<?php else: ?>
<div class="not-featured">
<?php endif; ?>
<div class="not-featured">
Is outputted if the featured True/False field is checked or not.
Any ideas what I’m doing wrong?
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.