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
Hi,
I started simple with this shortcode, but got no results:
[mashup query="post_type=Event"]
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:
[mashup query="post_type=events"]
Adding the date and meta_compare also seemed to work:
[mashup query="post_type=events&meta_key=expires&meta_value=2020-02-04&meta_compare=>"]
Hopefully the problem was just the slug, and that’s enough to help you get the PHP code working.