Forums

Static Page + Post in frontpage (7 posts)

  1. cmstheme
    Member
    Posted 5 years ago #

    As of WP 2.1 where I have the option to have a STATIC PAGE displayed in the frontpage, I would like to know if there's a way that I can display both a static page (About Us, for example) and normal post. I would like that the ABOUT US page will be at the top then the normal posts below it.

    Any help is greatly appreciated :)

  2. moshu
    Member
    Posted 5 years ago #

    I don't think that's doable from the admin panel.
    It would be doable with using a plugin and editing the index.php template file.

  3. cmstheme
    Member
    Posted 5 years ago #

    Yes I'm looking for some template edits on this. If anyone has an idea or have already done this one, please share how to do it :)

  4. moshu
    Member
    Posted 5 years ago #

    Yes, I have done it many times by using the get-a-post plugin: http://guff.szub.net/2005/01/27/get-a-post/

    You can "call" any post/Page with the plugin into any template file.
    Usually, I did this: made a hidden Page with the content I needed and inserted that Page into the index file - if I wanted it on the homepage (might consider using a conditional, so to hide in other views).
    The content displayed, eventually, can be updated from the blog admin.

  5. cmstheme
    Member
    Posted 5 years ago #

    specify a post or Page (but just one) to be displayed.

    But I think you can only display Page OR Post at a time, not a Page + Post.

    Thanks for the tip, btw.

  6. moshu
    Member
    Posted 5 years ago #

    Read again, man (girl?)
    You have an index page (aka index.php template file that displays by default posts - it is its "duty" to do it. It can display one or 100 posts, depending on your settings.
    On top of it - before the Loop - you insert the plugin's tag and that will display whichever Page or post you want.

    What is so complicated???

    [p.s. and when I say it's doable because I did it, I mean it, so don't argue!]

  7. sepguy
    Member
    Posted 5 years ago #

    for what its worth, ive tried to load this on 2.1 and had no joy, I don't know if its me or the plugin...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags