Codes are fine. I was extending an elementor addon.
Solved. I was using a single value YES. When I add Yes and NO, it works. But I have to check the YES/NO box every time to return the value. Thanks, John for your awesome plugin.
As I said I have figured out to show the featured projects which are controlled by an ACF field. NOt a big deal to sort them.
All I want is to show other posts which are not featured in this post type.
Like this:
Project 1 (featured)
Project 2 (featured)
Project 3
Project 4
In this case, do I need to run another loop to show non-featured posts? If yes, how would I approach it?
Hi John,
In a custom taxonomy called “Genre”, by default, there are WordPress built-in fields name, slug and description. I want to add an extra field let’s say “Top Genre” as text.
So I have created a field group and set it up as the instructions say.
Seems it only shows (but repeating with every posts) when I put the “get_field()” in the taxonomy template’s post loop.
I just want to show the field value anywhere like term_description().
Hope you got the problem.
Thanks
I want to get values directly from the ACF fields.
How to initialize the ACF in init hook? Any example?
Thanks. did it. I have used update_field( $field_key, $value, $post_id );
and it worked.
Here is the thing. I wanted to generate a number for this format “YEAR.MONTH.post_id” I can do that in PHP by concatenating the_field() values. But that generated number is not showing in the advanced search results. That is why I was wondering if that number could be automatically populated in ACF getting values from other fields.
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.