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”?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘New page to list posts of a certain category’ is closed to new replies.