Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have custom post type and I want to have a menu where I combine category or categories from default Wordpress post type and from my custom post type.

Let's say I have these categories

  • sport, books, movies, any in default post type
  • sport, books, school, any in my custom post type

can I have a menu link where I would display

  • sport posts from both post types?
  • sport, books posts from default post type and any from my custom post type?
share|improve this question

1 Answer 1

up vote 1 down vote accepted

What I would suggest in this situation is that you create a "CUSTOM QUERY" to query the posts. Set this custom query into a page, then use Appearance > Menu's to add the page into your menu structure.

I hope this helps.

share|improve this answer
    
how do I link custom query with the page? –  Radek Apr 3 '11 at 22:59
    
Just us query_posts or wp_query search them on the codex mate. –  Xavier Apr 4 '11 at 0:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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