Displaying posts in a looper with an SCF checkbox value

I have created a CPT (news-impact) thhat has an ACF checkbox (display_on_front_page) that I want to display in a looper if the checkbox value is “yes”.

I tried this as a query string in the looper provider, but I had no luck getting the posts to appear.

post_type=news-impact&post_status=publish&posts_per_page=3&orderby=date&order=DESC&meta_key=display_on_front_page&meta_value=yes

Am I taking the wrong approach?

Hello @501creative,

Thanks for writing to us

I would suggest you please use this Query string and recheck it

  post_type=news-impact&posts_per_page=10&meta_query%5B0%5D%5Bkey%5D={{dc:post:meta key="display_on_front_page"}}&meta_query%5B0%5D%5Bvalue%5D=%22yes%22&meta_query%5B0%5D%5Bcompare%5D=LIKE 

If it doesn’t work for you, please share your details in a secure note. Please provide the following details

  • WordPress Login URL
  • Admin-level username and password
  • Exact page URL

You can find the Secure Note button at the bottom of your posts

Thanks