How to create a new page with a category of a custom post type
-
hi, everyone, from 2 days and nights I bet my head on a problem with custom post type, I read a million questions and replies around the web but nothing that resolve my problem:
I’ve renamed the default post to “News”
I’ve created a custom post type called “Reviews” with 2 category (pop, rock).then with a code now I see in the homepage loop standard the news and the reviews post, OK
the problem is when I try to create a page called Reviews Pop and Reviews Rock
how can I show in the page “Reviews Pop” the loop only of the category “Pop” of the custom post type Reviews?
and how can I show in the page “Reviews Rock” the loop only of the category “Rock” of the custom post type Reviewsfor example: I duplicate the index.php or the archive?, so I rename it Reviews-Rock with a template page code at the start of the document?
but how to query the custom category after the loop?so and how to create a page with standard loop only for “News”?
I ask because I want to learn more about the code and I know that everything can be resolved with a navigation menu with categories item, but I want to learn the code in first! ??thank you very much and sorry for my english, I hope in your help
- The topic ‘How to create a new page with a category of a custom post type’ is closed to new replies.