Home › Forums › MapPress Support › Mashup shortcde not limiting no post per page › Reply To: Mashup shortcde not limiting no post per page
February 3, 2020 at 3:22 pm #18463
I started simple with this shortcode, but got no results:
The problem is the query needs the post_type slug not it’s name. From the CPT plugin, we can see the slug for ‘Event’ posts is ‘events’. So this query works:
Adding the date and meta_compare also seemed to work:
Hopefully the problem was just the slug, and that’s enough to help you get the PHP code working.