Take “posts” to the next level with four WordPress plugins

One of the most confusing things for new WordPress users is understanding the difference between posts and pages. We won’t attempt to re-hash this subject as there are plenty of good references but here’s our take to tee up the purpose of this article.

We like to think of “posts” as a chronological stream of content a.k.a. a blog. You could also think of posts as “chunks” of content and you could relate or “tie” them together when you use the taxonomy features of WordPress by selecting categories, tags, and now “post types” in WordPress v3.1 for posts that you create.

We would then define “pages” as a way to have a static web page of content, for example an “About” or “Contact” pages. Pages are usually not updated as often as a posts. Technically, behind the scenes in WordPress there’s very little difference between posts and pages.

Finding flexible ways to show posts
So what if you want to have a “page” on the navigation bar to pull in blog posts within a certain category or tag? You could build a new page template by editing and creating some PHP but that’s a headache when you could use WordPress plugins to the same thing, right?

We found three indispensable plugins that will make your life easier if you want to create “pages” by pulling in and controlling content from your posts.

A real life scenario
Here’s an example, say you wanted to create a WordPress site with job listings. You could enter in the various open job positions into the posts editor and add tags and/or categorize them. Then you could setup pages on the navigation bar with labels like “mobile” or “PHP”. Then you could use a plugin that would pull in only job posts matching that taxonomy.

Both of these plugins, once you activate them, all you have to do is create your new page and then paste in the shortcode with some parameters like the ID number of the category or tags. We haven’t tried using them both at the same time but they definitely work on their own on some of our real life sites.

So the first plugin is called Posts by Tags for use when you want to create a page filled with posts from tags. All you do simply is paste in shortcode like this into your page editor:

[posts-by-tag tags = "tag1, tag2"][/posts-by-tag]

Simply replace 1 (and 2) with your tag ID number(s) to have that page show only posts matching those tags. We’ve noticed on certain templates you don’t have to put in the ending tag because it will show up on the published site.

On a side note, so how do you know what your tag ID numbers are? When you’re editing the tags in WordPress admin, look for the ID number in the URL string at the top of the page like in the screenshot:

tag-id

And yes, there is also an plugin to show your ID numbers (newer more recently) updated plugin to show that info in the WP admin pages showing all your pages, posts, tags, categories, etc.

Publishing posts by Categories
So what if you want to show posts based on categories instead of tags? Give List Category Posts a try. This one was recently updated so it works with WordPress 3.1. It works in a similar way to the tag plugin but lets you use category names as well as ID numbers. In fact List Category will also support tags so if you’re looking for an all-in-one solution, give this one a try first.

The other way to publish “pages” of posts
Yes, there is another way to reproduce this type of site structure by simply using WordPress 3x’s navigation bar menu builder to create URL based queries for the tags or categories (example: /category/name-of-cateogry/). However using this method, you wouldn’t have the ability to add (type out) content around the posts either at the top or the bottom of the page.

Hide posts without a need for password
And the final plugin that you’ll want to try out is WP Hide Posts. This one might be helpful even if you don’t need to pull in posts into pages. With WP Hide Posts, you can hide certain posts from appearing on the home page or other post pages.

It’s useful if you want to write a “test” post that you didn’t want the general public to see yet on the home page. For example you had an announcement that you were working on with a copy writer but didn’t want to give them access to WordPress admin but wanted them to look at it first without the public seeing it.

Wp hide posts

Think of it as a way to have a “quasi-hidden” posts category that doesn’t require a password for anyone to see that posts. You can email people the URL of that post without a password required. We’ve used WP Hide Posts on our P2 reloaded site to hide posts related to revision history that don’t need to appear on the home page.

Note that users may still be able to find your post if they are using a tag/category cloud widget, so that’s what we mean by “quasi-hidden” so if it’s something top secret, password protect it.

So we’ve talked a bit about four very powerful posts tools for WordPress that will let you expand the way you think posts normally work in WordPress. You can use these tools to write, organize, and publish information in WordPress that you normally wouldn’t think of.

Get it: Posts by Tags | Show IDs | List Category Posts | WP Hide Posts

Plugin of the week: Autoptimize to speed up your WP site

One of the best ways to get new visitors to your website and to keep them coming back is to make sure your site loads up quickly. Most experts recommend having your home page load in about 2-3 seconds. If your site is taking more than 5 seconds for the average user, then you have a problem. One of the first steps is to get educated with Yahoo’s Y!Slow tutorials.

Next you can take advantage of some WordPress plugins to help speed up your page. We did a quick review of the popular W3 Total Cache a few weeks ago and overall we liked it. It seemed to have shaved off 1-2 seconds from our home page. The problem with W3 Total Cache is that  there are a ton of options and some of the “on” or “off” switches are labeled in a confusing way.

So if you’re looking for something simpler but possibly as effective give Autoptimize a try. Autoptimize’s features are not as extensive as seen by their control panel but nevertheless it has the important features like HTML code, CSS, and Javascript optimization and compression.

We’ve been using it for the past few weeks and think it works really well. We recently did some performance testing with a clone copy of this site on a fresh WordPress installation and noticed that Autoptimizer does make a difference and shaved off 1 second versus not having it installed.

Autoptimize also supports off loading content to a CDN but we haven’t tried it yet but we are going to jump into that water very soon to help speed up our own sites.

Neither Autoptimize nor W3 Total Cache are a magic bullet to solve your WordPress performance problems – especially if your web hosting company has server capacity and/or slow connection issues. But installing the Autoptimize plugin is an almost no-brainer way to squeeze some speed out of your WordPress server.

Get it: Autoptimize

Make your own shortened URLs with le petite url

You’ve been probably seen those shortened URLs (example: http://goo.gl/8hsrE) on Twitter or Facebook. What’s the big deal about them? With the shorter URL, they allow more of the message to fit inside Twitter’s 140 character limit. People use a URL shortener website services like bit.ly or tinyurl or Google’s goo.gl.

But now if you have a relatively short domain name, you can do the same while keeping your URL. Install the le petite url plugin and it will display an admin widget in your posts and pages with an auto generated shortened URL. The plugin is well written has a fair amount of features and seems to be reliable so far.

Real world example: the plugin generated this shortened URL for this page:

http://wpverse.com/bfeyi

verus the full URL:

http://wpverse.com/2011/01/make-your-own-shortened-urls-with-le-petite-url/

If I was really clever, I would register WPver.se (at a Sweden registrar) and use that as for both my domain and shortener. That would reduce the length of my shortened URL by 3 characters by getting rid of the “com.”

Quick Tip: This plugin includes a widget to display the shortened URL on the sidebar so your visitors don’t have to run the page through a 3rd party URL shortener and it will allow you to keep your domain name branding.