Follow Siam Communications on Twitter  Join Siam Communications on Facebook  LinkedIn Profile

WordPress: Sticky Posts

Published: 9 Nov 2008 In: How to's

Recently, someone posted a question on one of the forums asking if there was a way to make a particular blog post sticky, or always the first post displayed on the home page of the blog.

I know of a way to edit the theme files to add static content, but that is the extent of my knowledge. So I got to thinking, there must be other ways to add static content … and perhaps I had missed something with this “sticky post” issue. So I set out to find some alternative methods for adding static content to a WordPress blog.

Creating a Static Front Page

There is a simple way to add a static page, based on the same theme as your blog.

You start by creating a page in WordPress from your admin panel. (Click ‘Write’ and then ‘Page’)

Then proceed to your settings (Click ‘Settings’ on the upper right) and click on the ‘Reading’ section.

Here, you can let WordPress control the front page automatically with your latest blog post. Or you can manually select one of your newly created static WordPress pages as the start page for your blog.

Use a Plug-in

The most popular plug-in for sticky blog posts is Wp-Sticky from Lester ‘GaMerZ’ Chan. A plug-in is an easy and painless method for adding this functionality. I have not yet used this plug-in, so I would welcome any comments you may have.

If you simply want to add a small message to your readers, you could also consider the WWSGD WordPress plug-in (What Would Seth Godin Do). This plug-in allows you to set a message for new visitors that changes when the visitor returns. The message can be placed at the top or bottom of the first post on the home page, and on the post page.

The WordPress Loop

As with everything on the Internet, there is an easy way and a hard way. WordPress is no exception and has the ability to be edited to provide you with more flexibility. Be warned, this is not recommended for the average Internet user and requires some knowledge of coding.

The WordPress Loop is a reference to the part of code that processes you blog posts. By inserting your own code in specific locations, you can add static content to the beginning of a page, group specific posts, display more than one group of posts, and so on.

For the brave, you can find out more about the Worpress Loop in the online documentation.

Related posts:

  1. Adding a Simple Contact Us Form to WordPress
  2. Creating Your own WordPress Plug-in and Widget
  3. Hidden Gallery Shortcode for WordPress
  4. Using Self Hosted WordPress at Home
  5. Using Forms in WordPress

Related posts brought to you by Yet Another Related Posts Plugin.

 

Share |

3 Responses to WordPress: Sticky Posts

Avatar

pressitfor.me

November 9th, 2008 at 9:12 am

WordPress: Sticky Posts | Web Services and Tools…

The article discusses several methods for adding a sticky post to WordPress blogs….

Avatar

Lyndi

November 13th, 2008 at 1:47 am

WordPress 2.7 has this functionality built-in. All you need do is click an option box and the relevant post becomes ‘sticky’. This is only one of the many changes that are coming our way in the new version. Cannot wait.

Avatar

Eric

November 13th, 2008 at 10:26 am

That’s great! There certainly is a good buzz about this next major release. I am anxious to give it a try once it is out of beta.

Comment Form

About Us

Siam Communications has been helping people with websites since 1998. We have offices in Hong Kong and Bangkok, Thailand offering a variety of low cost web services.

  • admin: Based on a specific comment made about iMobile, I thought this article might be of interest. Here i [...]
  • Jay Hunt: website SEO is very very important if you want good rankings for your website. :'* [...]
  • Milat: Thanks very nice article [...]
  • admin: Hi Martin, Good comment. I guess Google has the advantage of being able to throw money at cutting [...]
  • Martin: Dude, hi, I tried Wave, as you know, but never found a use for it. Each of its component parts [...]
>