Custom Post Type Query with Advanced Custom Field Check

Say you want to query a Custom post Type, but want to see if an Advanced Custom Field is checked, and just filter those posts. In this example, we want to show testimonials on the homepage, but only if the “Show on Homepage” custom field is checked, “yes”.

Here it is:

Leave a Reply

Your email address will not be published. Required fields are marked *

7 + 2 =