Hi i have a problem with CPT and mashup
[mashup] <- displays correctly 10 of my CPT
[mashup query"posts_per_page=-1&post_type=unterkuenfte"] <- everything i try to query displays all different CPTs in every CPT not only unterkuenfte one
Hi, WordPress will display ALL posts if there’s something incorrect in the query. For example, often the custom post type name is different from its displayed title.
But your problem may be simple: there is a typo in the shortcode. All parameters need ‘=’ in front of them, so ‘query=’ not just ‘query’:
For what it’s worth, I seem to be having the same problem. My shortcode is this:
[mashup query="post_type=community"]
I’ve double-checked the post type slug, and it is correct. But the map is drawing in posts from other post types too, and I’m not sure why this is happening.
The original poster had a typo in the shortcode, but I did some testing after I saw your note and it turns out this is actually a bug. It’s fixed in 2.47.4, which should be available this afternoon.
The Typo was just here, in my testing i had it with the “=” in front and many other variations. Thx for the fix, but 3 days to late for my update subscription… have to buy again first.