Reply To: Mashup shortcde not limiting no post per page

Home Forums MapPress Support Mashup shortcde not limiting no post per page Reply To: Mashup shortcde not limiting no post per page

#18463
Chris
Keymaster

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.