New page to list posts of a certain category
-
Hi!
I would like to make essentially an alternate index.php page, but for a specific category of posts. What I am trying to do is create a /members page that would dynamically go through and display any blog posts with the “Member” category, This gives my client the ability to easily create, hide, edit or delete a member.
I know the php needed for querying a category would be something using
$my_query = new WP_Query('category_name=Member');
my question is more about linking it in with the site. What php file would I put this new page in, and how would I pull it up when someone accesses the URL “www.example.com/member”? -
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
- The topic ‘New page to list posts of a certain category’ is closed to new replies.