How to create an array for a CPT post ID to use in an IF/WHILE statement

I am using ACF and I am trying to do the following on a page

Create an array of the custom post type “Services” post IDs
Check if the array has at least 1 post ID
If so, for each post ID, display:
If not, echo “There are no services”

Read more here:: How to create an array for a CPT post ID to use in an IF/WHILE statement

Leave a Reply

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