I would like to set up a page template that allows me to build the page based on the posts of a certain category. I know I can used the cat=# setup to do this, but I want something that automates this a bit.
My idea is to have the page load, look at the title of the page and if there is a category with that same name, show the posts of that category.
Page is created called “Dogs”
I would want the Dogs page to look for a category named dogs and if it is there show the posts. If not, then some other default text.
The challenge is that I don’t want to have to create a new page template for each category. I want the page to get the title, and if category=’title’, show posts.
I hope I am describing this in a way that makes sense.
- The topic ‘Creating Page Based on Category’ is closed to new replies.