Allow front-page Page Link to allow category posts to be displayed
-
Sorry for the bad topic title. I couldn’t think of a good way to describe it.
I’ve added this code to get the behavior I’m looking for and was wondering if there was a better way to do it, and if the author would add this functionality into the theme?
Around line 24 in /parts/content-page.php
<?php query_posts('category_name='.get_the_title().'&post_status=publish,future');?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php endwhile; else: endif; ?>
This allows you to create a page with the same name as a category name and automatically display all of the posts contained within that category.
Thoughts?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Allow front-page Page Link to allow category posts to be displayed’ is closed to new replies.