WordPress.org

Forums

[resolved] Newest Post on a Individual Page (5 posts)

  1. depperson
    Member
    Posted 8 years ago #

    I am using WP 2.0 as a CMS, and it is working out great. I am a newbie, and learning (by experience and the forums) to tweak templates and tags and such.

    However, I am confused and request help on this topic. I know there are forum posts about it, but most are too advanced for where I am.

    I have a church website, and I would like the pastor to be able to make new posts at will. Whatever his newest post is, should show up on a a sub-page (child of Home) I created, called "A Note from the Pastor." and the rest should archive (maybe even a listing of archived posts on the same page).

    I have seen a few plugins, and read over the single.php template codex, but I can't put 2 and 2 together for this one.

    http://www.jesusmyrefuge.org/home/nfblog

    Can someone get me started and maybe a few others throw me a bone or two?

  2. moshu
    Member
    Posted 8 years ago #

    One possible approach:
    Make those "Notes" a category (which should be excluded to show up on the main page and in the menu).
    Create a category template for that category with a Loop that shows only one post. (It will be the latest.) Additionally, you can use a plugin or a miniloop to show a list of earlier/previous Notes.

  3. depperson
    Member
    Posted 8 years ago #

    Okay, let me rephrase. I have a sub-Page listed in my menu that I want to contain the latest post and archived post list.

    I have started with categorizing the posts, but what do I name my page template where it affects that individual page.

    please look http://jesusmyrefuge.org/home/nfblog/ is the home page with the sub-Page listed at the top.

    http://jesusmyrefuge.org/home/nfblog/?page_id=48 is where I would want to list the pastor's latest note and show and archived list.

    I really am getting lost. I've looked at category templates, page templates, conditional tags, AND my brain feels like I am reading the encyclopedia.

    Remember, I am definitely a newbie, so you almost have to spell out the code logic for me. But I promise to keep studying!

  4. moshu
    Member
    Posted 8 years ago #

    Forget the Pages. Pages are not meant to show posts. Period.

    In the scenario I suggested above all you have to have is a category template (see Template_Hierarchy).

  5. depperson
    Member
    Posted 8 years ago #

    I understand what you are saying moshu, and it is probably the best approach.

    Here's a secondary dilemma: how can I keep the horizontal sub-menu that appears if I go with the category template? Add it manually?

Topic Closed

This topic has been closed to new replies.

About this Topic