April 14, 2008

How to keep content on the front page of your WordPress blog

Filed under: Beginner, Tips, WordPress — Sarah Lewis @ 2:46 pm

I got a great question over the weekend from Reonne of The Chocolate Fudge Cafe:

What’s the best way to make it so that my initial post, “Stir The Pot,” stays on the first page of my blog? How did you make it so that your findableblogs.com first page stays the same…like a website? I thought that posts automatically get archived as you continue to update and write new posts. I’d like what I said in the beginning to stay on there for at least awhile, but I want to add new material as well.

First, a confession: the only reason the front page of this blog hasn’t changed for a while (prior to this post and a change I’ll talk about in a moment) is that I haven’t written anything for a while! Between client work and an ebook I’m about to release, I’ve been a complete slacker where this blog is concerned.

If you’d rather not do the slacker thing (like Reonne, you have posts to write!), you have three options.

Use a Page as the home page

That probably sounds cryptic if you don’t understand the difference between Posts and Pages in WordPress, but a Page is designed to stick around without changing, while Posts tend to appear and disappear from the homepage, archives, and search results relative to how many other Posts you have.

You create a Page in the same way you do a Post, but instead of going to “Write” → “Post” (or just “Write”, since “Post” is the default sub-tab), you go to “Write” → “Page”. If you want the whole front page to stay essentially the same for a while, this is a good way to do it; just create the page here.

Once you’ve created your page, go to “Settings” → “Reading” (”Options” → “Reading” in pre-2.5 versions of WordPress) and switch the “Front page displays” setting to a “static page” of your choice. For instance, if I was going to change the front page of this blog to my “About” Page, I’d set it like so:

Setting the static front page in WordPress

In fact, this is exactly what I’m going to do when I finish coding the new design for this site. In that case, I’ll create a special “Home” Page that will have the front page content, and that will be the first thing new visitors see.

The potential downside to this approach? Your front page is the Page you set up, not a list of entries. That might suit you just fine (like I said, that’s exactly what I’m planning on), but if you want your front page to automatically update with new posts, keep reading.

Use the WordPress time stamp magic

Change the published time in WordPressWith WordPress, you can easily change the dates on your posts. The newest post shows up at the top of your front page (unless you’re using a very unusual theme), so all you have to do is make sure that the post you want at the top is always dated after the other posts.

This can be a bit of a pain, because you’ll need to change the date on the “top” post every time you create another post, or back-date your new posts to make them “older”, which is just confusing (if I was choosing between the two, I’d change the date on the “top” post each time).

Clearly, this isn’t as passive as the first method, but if you’re only talking about a few weeks or a few posts, it’s not that bad and accomplishes the goal nicely.

Use the sidebar

If the content you want to feature is really a kind of introduction, it might make sense to put it in the sidebar using a Widget. That way, it’s always readily available in a place where people look when they’re searching for context, but it’s not in the way of your content and doesn’t require any particular maintenance effort on your part.

All things being equal, this is probably the route I’d take in most cases, if it suits the content.

Advanced options

You can actually combine some of these ideas if you’re comfortable editing your theme. For instance, if you know your way around The Loop, you could show the content of a Page first thing, directly followed by the regular Posts. You could also just manually edit your theme’s home.php or index.php file to show a certain message before the regular content.

However, neither of these options are as easy or convenient as the previous three “out-of-the-box” options, so I tend to avoid them for short-term changes.

If you liked this post, you will probably enjoy getting our convenient daily or monthly updates. Click here to find out more.

9 Comments »

  1. I found your blog on google and read a few of your other posts. I just added you to my Google News Reader. Keep up the good work. Look forward to reading more from you in the future.

    Stacey Derbinshire

    Comment by Stacey Derbinshire — April 14, 2008 @ 3:15 pm
  2. Thanks Sarah…as usual I love your honest and casual style! I still have a jazillion more questions, but heh…that may keep your blog current ;)

    Reonne
    Earth’sSweetPleasures.com

    Comment by Reonne — April 15, 2008 @ 11:06 am
  3. Excellent advice. Thanks!

    Comment by Pete Aldin — April 15, 2008 @ 2:04 pm
  4. There is a relatively new plugin on WordPress.org that would keep a post at the top: http://wordpress.org/extend/plugins/simple-sticky-posts/ It’s nothing to do with me I hasten to add; I just remembered seeing it on there when I read your post. I just tried it out, and it’s pretty simple to use. The post you make ’sticky’ is repeated as the first post, and in it’s normal position in the blog.

    Hope that’s of some help.
    …paul

    Comment by ...paul — April 15, 2008 @ 4:02 pm
  5. Great point, Paul. That’s an easier solution that several of the ones I mentioned, and now that you suggested it, I vaguely remember hearing about it. :) Thanks for speaking up! Hopefully you’ll save someone some trouble.

    Comment by Sarah Lewis — April 15, 2008 @ 8:56 pm
  6. Since writing the post about the “Sticky Posts” plugin, I’ve explored more of the many options in the theme I’m using. And I’ve discovered I can have a top and bottom widget container set up, which can contain any of the widgets (text box etc.) and sits within the post area of the theme. I’ve set the top one up at the moment with an extra picture in — and that remains static.

    I use the Mandigo theme (http://www.onehertz.com/portfolio/wordpress/mandigo/) — again, I’m just passing on information and have nothing to do with the theme, apart from using it, myself. And if you want to see how I’m utilizing it, my site is here: http://www.paulsibley.net/

    I don’t know if other theme’s do a similar thing, but it’s a helpful addition for theme makers to add in to their options.

    Comment by ...paul — April 19, 2008 @ 6:46 am
  7. Thanks Sarah!
    You have done a great work. I am the user of wordpress but this time I have no problem at all. But I expect your kind reply if I find any difficulty. Thnks once again!

    Comment by Lionel The Search Engine Optimization Guru — April 21, 2008 @ 10:47 pm
  8. Sarah,

    As always, you are a wealth of information. Any blogger would do well to get to know you.

    Comment by Gene — April 23, 2008 @ 8:12 pm
  9. Great advice. And don’t feel bad about being busy! Such is life!;-)

    Comment by Phyllis V — May 13, 2008 @ 8:37 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

Close
Powered by ShareThis