Support » Theme: Customizr » 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.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi again mbrinson,
    This is more a general wordpress coding topic, and this forum is focused on Customizr related issues.
    You might try to post this topic in one of those forums
    Best regards

    This is a question specifically about Customizr. I understand if you just glanced over it without giving it a close reading, but please re-read it and see if it’s something you wouldn’t mind incorporating into your theme.

    I’m not asking about how to do it, I’ve already done it. I just wanted to see if you’d include it in your theme, so that I could upgrade when you come out with updates without worrying about re-coding that same fix after each upgrade.

    I would be very interested in seeing this incorporated as it’s exactly what i need. I just learned that WP doesn’t easily allow multiple blogs per site and i’d love to have a clean front page but then pages that were each posts specific categories. Ie Food, Health, etc.

    Hi guys,
    This is a good idea but I it might be hard to understand and to use this way for most users I think.
    I see an easier way to do it : use the category title available in the admin menu and insert it into your main menu.

    I hope I understood the needs and this helps!

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.