Home › Forums › General Issues › Single Post Checkbox Effecting Archives › Reply To: Single Post Checkbox Effecting Archives
This is for the checkbox ( true/false ). I could also use something like this :
$checked = get_field( '_custom_field_key' );
All i want to do is add the checkbox to all edit screens for single posts/pages and all archive type pages to show the default widgets or when checked, the custom widgets.
Seems like get_field only works on single posts/pages and NOT on archive page types?
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.