WordPress.org

Support

Support » How-To and Troubleshooting » more than one post page

more than one post page

  • I have searched for a few days, and can’t seem to find a solution to this. What I need is for there to be another page that will list only certain posts, since I need them to have a different format, as well as be listed away from the other blog posts.

    I am quite experienced, and will write a plugin if absolutely necessary, but thought I would check here for solutions first. I would rather not hack the code, though, since I want to keep my upgrades clean.

Viewing 15 replies - 1 through 15 (of 26 total)
  • “another page that will list only certain posts”

    How would you identify those “certain posts?”

    If you could assign those posts a specific Category, then you might consider using a Category Template to display those posts.

    Otherwise you could use a Page and associate it with a Page Template that makes use of The Loop.

    Additional Resources:
    Stepping into Templates
    Template Hierarchy

    How would you identify those “certain posts?”

    By category would work. So I will try to use cataegory templates.

    But, I also want a separate page (or navigation item, really) that will take them directly to the posts in this category, as though it were a completely separate blog or “news item” list.

    But, I also want a separate page (or navigation item, really) that will take them directly to the posts in this category

    That can be done via the template tag, wp_list_categories. Take a look at the WordPress Default 1.6 theme’s sidebar.php file (wp-content/themes/default/sidebar.php) for an example.

    This will help add it as a link in a sidebar, yes. But what if I want it to show up in my custom page navigation menu? Would I just add it to the end, outside of the “page” structure with a link to the posts in that category? Hope that makes sense…

    How do you present your “custom page navigation?”

    Is a link available to see that?

    it is just a simple navigation menu at the top of the page – i prefer not to post URLs to my sites – i have been bitten more than once…

    Since the menu navigation uses wp_list_pages any page you create will show in that top navigation menu.

    yes, that is right; so that brings us full circle to how i make a page that list all the posts in one category…

    This might be a good use for the redirectify plugin… basically, you build a dummy page that does a redirect (in your case) to the appropriate category page.

    Or you hard code add a link to the theme at the end of the page list for your category page.

    yes, hard coding it would work (i prefer not to redirect if i can help it)

    except that i use page templates as well – so would doing a category template work, then?

    except that i use page templates as well –

    while will have no effect on your category list. No harm.

    so would doing a category template work, then?

    If you’d like the category’s page (ala Category_Templates) to look like a Page, then yeah — make a template for that cat. (assuming I’m following what you’re after!)

    yes, i have custom headers for each page, and i will need a different header for this page, than from the regular blog page, so instead of a page template, i am hoping a category template will help me accomplish the same thing

    yes, that did it! the only other thing i need to do is get the plugin that let’s me exclude categories from the main loop, since i only want these entries on the “news” page

    or do you think i should just hard code that?

    Oh heck, I thought I’d already posted the plugins to this thread. There may be others, but I believe one of these two will simplify the cat exclude:

    Category Visibility plugin.
    Ultimate Category Excluder plugin.

    Granted, if you intend to stick with your theme for a while, massaging The_Loop is certainly an option.

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘more than one post page’ is closed to new replies.