Wordpress - Newest Posts Last?

by terryd
15 replies
I have a few wordpress sites and I generally have 3 posts on the home page, I want to add more content but if I do it's going to affect the front page and push one of the older posts off the front page.

I want the 3 older posts to stay where they are so basically my front page doesn't change. Is there a setting on wordpress where you can choose to have "newer posts first" or "older posts first" as I can't seem to find it.

I know one option I can use is to just date the newest posts before the last oldest post but it seems rather backwards, any insight from you wordpress pros?

Thanks!
#newest #posts #wordpress
  • Profile picture of the author PG_Favors
    Get a plugin called Wp-Sticky.

    You can download it here - WordPress › WP-Sticky WordPress Plugins - or just add it from within wordpress.

    Next, set the 3 posts as "Announcements." You'll have to edit each post individually to see the option. But it'll be in the right sidebar area beneath the category selection.

    Form this point, all the content you add will publish beneath the "Announcement" posts.
    {{ DiscussionBoard.errors[1954865].message }}
    • Profile picture of the author rosetrees
      No need to add a plug-in. Just "edit" each post to make it sticky.

      Look to the right of the post in your admin area when you are in edit mode. You will see a box headed "publish". The second entry says "visibility: public edit".

      Click on the word "edit" to expand the contents and put a tick in the box beside "stick this post to the front page"
      {{ DiscussionBoard.errors[1955117].message }}
      • Profile picture of the author terryd
        Originally Posted by rosetrees View Post

        No need to add a plug-in. Just "edit" each post to make it sticky.

        Look to the right of the post in your admin area when you are in edit mode. You will see a box headed "publish". The second entry says "visibility: public edit".

        Click on the word "edit" to expand the contents and put a tick in the box beside "stick this post to the front page"
        Doh..........now why didn't I think of that?..... I did that with the first post and just didn't think I could do it with more than one post!
        Signature

        {{ DiscussionBoard.errors[1955233].message }}
        • Profile picture of the author rosetrees
          Just have another cup of coffee - you'll be fine!
          {{ DiscussionBoard.errors[1955293].message }}
          • Profile picture of the author butters
            You can also change the time stamp of the post and it will stay on the front page.
            {{ DiscussionBoard.errors[1955296].message }}
      • Profile picture of the author PG_Favors
        Originally Posted by rosetrees View Post

        No need to add a plug-in. Just "edit" each post to make it sticky.

        Look to the right of the post in your admin area when you are in edit mode. You will see a box headed "publish". The second entry says "visibility: public edit".

        Click on the word "edit" to expand the contents and put a tick in the box beside "stick this post to the front page"
        Thanks! This helped me, too. I've been using WP-Sticky for so long that I didn't even notice this function. Man, it's probably been there forever now. I should really pay more attention to what's in those WordPress updates.
        {{ DiscussionBoard.errors[1955299].message }}
  • Profile picture of the author terryd
    After playing around with this in the weekend I realise that using the sticky function will not work for me either. I can make all 3 posts as sticky but you can't set the "show blog post" function to zero (it resets it to 1 if you put in 0) which means that there will be 3 sticky posts and one normal post on the main page.

    So the only way I figure I can do this is to somehow get wordpress to show older posts first, does anybody know how I can do this?

    Thanks
    Signature

    {{ DiscussionBoard.errors[1979024].message }}
    • Profile picture of the author butters
      Originally Posted by terryd View Post

      After playing around with this in the weekend I realise that using the sticky function will not work for me either. I can make all 3 posts as sticky but you can't set the "show blog post" function to zero (it resets it to 1 if you put in 0) which means that there will be 3 sticky posts and one normal post on the main page.

      So the only way I figure I can do this is to somehow get wordpress to show older posts first, does anybody know how I can do this?

      Thanks
      I take it you didn't read my reply above, just change the time stamps =/... Its above publish.
      {{ DiscussionBoard.errors[1979032].message }}
      • Profile picture of the author terryd
        Originally Posted by butters View Post

        I take it you didn't read my reply above, just change the time stamps =/... Its above publish.
        Sorry buddy, I didn't, went straight for the sticky solution.

        If I did it this way though that would mean that I would have to change everypost from here on in to be older than the third post on the home page?

        I was hoping there might be a plugin, code or function that I could add/manipulate to make it show older posts first?

        Thanks for your contribution though!
        Signature

        {{ DiscussionBoard.errors[1979043].message }}
        • Profile picture of the author butters
          Originally Posted by terryd View Post

          Sorry buddy, I didn't, went straight for the sticky solution.

          If I did it this way though that would mean that I would have to change everypost from here on in to be older than the third post on the home page?

          I was hoping there might be a plugin, code or function that I could add/manipulate to make it show older posts first?

          Thanks for your contribution though!
          Yeah, that is the downside of it
          {{ DiscussionBoard.errors[1979053].message }}
    • Profile picture of the author VegasGreg
      Originally Posted by terryd View Post

      After playing around with this in the weekend I realise that using the sticky function will not work for me either. I can make all 3 posts as sticky but you can't set the "show blog post" function to zero (it resets it to 1 if you put in 0) which means that there will be 3 sticky posts and one normal post on the main page.

      So the only way I figure I can do this is to somehow get wordpress to show older posts first, does anybody know how I can do this?

      Thanks
      Wouldn't you just need to set your "show blog post" to 3? It will show the 3 stickies at that point. Unless maybe your theme uses independent code to adjust that number on the home page.

      To reverse the order of posts, there is a plugin available to do that too.
      Signature

      Greg Schueler - Wordpress Fanatic... Living The Offline Marketing Dream...

      {{ DiscussionBoard.errors[1980276].message }}
      • Profile picture of the author terryd
        Originally Posted by VegasGreg View Post

        Wouldn't you just need to set your "show blog post" to 3? It will show the 3 stickies at that point. Unless maybe your theme uses independent code to adjust that number on the home page.

        To reverse the order of posts, there is a plugin available to do that too.
        No if I change it to 3 it will show a total of 6 posts, the 3 stickies and then 3 additional blog posts.
        Signature

        {{ DiscussionBoard.errors[1980292].message }}
        • Profile picture of the author VegasGreg
          Originally Posted by terryd View Post

          No if I change it to 3 it will show a total of 6 posts, the 3 stickies and then 3 additional blog posts.
          Ahh, I stand corrected. I never noticed that before, but just checked it out. Interesting.
          Signature

          Greg Schueler - Wordpress Fanatic... Living The Offline Marketing Dream...

          {{ DiscussionBoard.errors[1980298].message }}
  • Profile picture of the author Istvan Horvath
    I am not into plugins when I can solve it with a one-line code...
    So, here you go: Function Reference/query posts WordPress Codex
    (read the whole article to understand how it works)
    Signature

    {{ DiscussionBoard.errors[1979771].message }}
  • Profile picture of the author Istvan Horvath
    Yeah, before the "sticky" feature was added in WP 2.7 a few people asked to have as the OP would like it... however, the devs said it would be too much work.

    On the other hand if you want a frontpage that doesn't change... you may want to consider having a (static) Page as your front and have a custom Loop in it displaying 3 stickies or whatever you set in the Loop.
    Signature

    {{ DiscussionBoard.errors[1980316].message }}

Trending Topics