Code: Display Last Modified Date in WordPress

June 20th, 2009

Code Snippets, WordPress Tutorials

If you run a website or blog professionally, it is always good business practice to update your older posts to keep them as valid and current as possible.   This helps retain (or even grow) their search engine positions, and helps keep your blog from having dead links or outdated content. 

One of the things I recommend readers do on these types of blogs which use WordPress is to adjust the date field to instead show the last modified date.   This way posts that were written two years ago won’t have that date if you’ve updated them more recently!

Here is the code you’ll need to easily accomplish this.   As always, you’ll want to make a backup of your single.php file (or any files you will be changing) before proceeding.

Read the rest of this entry »

How-To: Display Most Recent Twitter Entry on Your WordPress Blog

June 20th, 2009

How-To, WordPress Tutorials

Proud of your tweets?   Maybe you run a business blog and would like to integrate your Twitter feed?   For WordPress users, adding your most recent tweet to your WordPress blog is actually very easy.   Simply add a little code snippet in your blog’s sidebar where you want to display your most recent tweet, then add your Twitter username!

Here is the code you’ll need to easily add the most recent Twitter entry: Read the rest of this entry »

How-To: Prevent Google from Indexing Your Images

June 20th, 2009

How-To

For most bloggers, traffic and monetization is the driving force behind our blogs and motivation to blog.  Therefore, why would someone who operates any image-heavy blog who would want to prevent a lot of potential traffic from Google’s image search?

There are actually a number of reasons bloggers would want to keep their pictures from being indexed by Google, a few examples being bloggers who like to post personal pictures, or custom make their pictures and don’t want others to take them. Read the rest of this entry »

Code: Adding Edit Buttons to WordPress

June 20th, 2009

Code Snippets, WordPress Tutorials

There are a growing number of premium themes on the market these days for WordPress users, many of which are extremely advanced, yet I’ve found that many designers fail to add some of the most basic things all themes should have.  One of the things many designers forget to do is code ”edit” buttons on their posts, pages, and comments.  

For those unfamilar with these buttons, they only show up for people who are logged into the admin panel (readers can’t see them).   When clicked, you are routed directly to the post/page or comment within the admin panel so you can edit the post.   It has been my experience that having access to these buttons can save a lot of time when trying to manage and update older posts. 

Read the rest of this entry »

Code: Display Categories and Archives in WordPress

June 19th, 2009

Code Snippets, WordPress Tutorials

There has been some debate by bloggers over the past few years as to the value of displaying your archives, with some bloggers going as far as to not even display their categories!    The general idea is that the use of recent posts, popular posts, and a built-in search feature will allow your readers to find what they are looking for.

Well, I for one still believe that categories and archives should be displayed on blogs.   If you’d like to do the same for a WordPress blog, here is the code you’ll want to use.   For your convenience, we’ve provided two options for each:  traditional display and drop-down menus.

Simply paste the WordPress code below in your sidebar.php file where you want the category or archives to display: Read the rest of this entry »