WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
[closed] Allow front-page Page Link to allow category posts to be displayed (5 posts)

  1. mbrinson
    Member
    Posted 1 year ago #

    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?

  2. nikeo
    Member
    Theme Author

    Posted 1 year ago #

    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 http://wordpress.org/support/
    Best regards

  3. mbrinson
    Member
    Posted 1 year ago #

    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.

  4. Biggiehill
    Member
    Posted 1 year ago #

    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.

  5. nikeo
    Member
    Theme Author

    Posted 1 year ago #

    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!
    Nicolas.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic