A site in Word Press. It has several custom post types. Each of them has several taxonomies that, coincidentally, are the same. Specifically:

 - Press <-- CPT
    - Country   <-- Taxonomy
    - Theme 
    - Department

- Resources
    - Country
    - Theme
    - Department

I'm using Visual Composer and need to use the Post Grid module, which lets you create a custom query in "one-line" format such as posts_per_page=3&post_type=post&post_status=publish&orderby=date&order=DESC


What's the one-line query to output the most recent 5 posts from BOTH custom post types within the taxonomy "Country"?

1 Answer 1


Found the answer! The string has to be URL-encoded containing an array for the field "post-type" and also the "[ ]" characters are not allowed so must output the url-encoded value which is %5B%5D.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.