• Resolved royatl

    (@royatl)


    I create a post-type of “parties” and a post-type of “meetings”.

    I want to have a menu entry “Events” to show a page that lists both parties and meetings.

    Should I use category, or a page with a custom loop template? or can I do this easily with custom-taxonomies?

    I thought custom-post-type/-taxonomy support in 3.0 would make this simple, but nothing I’ve tried gets me anywhere near what I want.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter royatl

    (@royatl)

    I’m not talking about fields, I’m talking about custom-post-types.

    And I should make this clearer…

    I want a menu item called ‘Events’ that when it is selected, it goes to a page which runs a loop that displays both the ‘parties’ posts and the ‘meetings’ posts (for that matter, it could be just one of the types — I still can’t see how to do that). From there, of course, you could click on the title of the post and go to ‘single-meetings.php’ or ‘single-parties.php’.

    I’m not concerned at this point on how to display the information within each post-type.

    Thread Starter royatl

    (@royatl)

    Ah, that just about does it, and is similar to my second idea above (“or a page with a custom loop template?”).

    But I still have a little problem that, I guess, will require my dropping down to a SQL query instead of just using WP_Query():

    I.E. is there any way to select both ‘meetings’ and ‘parties’ post-types using WP_Query? Doesn’t look like 'post-type' -> 'parties, meetings' works.

    yes. 'post-type' => array('parties', 'meetings')

    Thread Starter royatl

    (@royatl)

    Wow, I had tried that before, and it didn’t work, but now it does.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘pages with lists of custom post types’ is closed to new replies.