Shortcode that will display all post types

This topic contains 1 reply, has 2 voices, and was last updated by  Paolo 8 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #53522

    amandacooper
    Expired Member
    Post count: 7

    For each widget, you can select only one post type (via dropdown). We would like to display latest listings from all post types. Is there a shortcode for this? I have tried [gd_listings post_type=”gd_place,gd_hotel”] but that does not work.

    #53596

    Paolo
    Site Admin
    Post count: 31206

    Hi Amanda,

    you cannot query all CPT at once. If you need to query all listings at once we suggest to use only 1 Custom post type and use categories and subcategories instead.

    Quering more than 1 custom post type would require to join database tables and would make your website terribly slow.

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket