This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

post list two post types

  • Creator
  • #9927

    how can I display two post types in the post list?
    I want to show post_type=event, post but can’t figure out the code to do that.
    Event is a custom field

Viewing 1 replies (of 1 total)
  • Author
  • #9937
    Jason Bobich

    I’m not quite sure if it will work to just comma separate them like:


    If that doesn’t work, the only other way would be to actually filter in your own custom query array from your Child theme’s functions.php. Here’s a sort of hack to do this. See #2 in the following response:

    $args = array( 'post_type' => array( 'event', 'foo', 'bar' ) );
Viewing 1 replies (of 1 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.