I have a custom post type called ‘release’.
It uses a custom field Radio button with options for ‘Yes’ and ‘No’.
this is a required field, and on my home page, I want to display all of the posts that are marked ‘Yes’.
I have tried several times to get code working to show these values but I get no results at all.
What code do I need to show all of the posts that are marked ‘Yes’?
Any help appreciated!
Hi @lowercase
You can query the posts and find the ones which have ‘YES’ by reading this tutorial:
http://www.advancedcustomfields.com/resources/how-to/how-to-query-posts-filtered-by-custom-field-values/
@smspaul – thanks for your help, however the thread you linked to is not related to querying posts, it is regarding loading a radio field value.
Thanks
E
As usual, it was a typo by me in the code calling the wrong custom field!
Thanks for your help though.