Browsing tutorials in Posts


1 Star2 Stars3 Stars4 Stars5 Stars

Display a Random Post (with AJAX Refresh)

I think you’ll be surprised at how ridiculously easy this is. We are going to leverage some serious smartness from both WordPress and from the JavaScript library jQuery.

Category: Posts | Source: | | Report Broken Link
Processing your request, Please wait....

1 Star2 Stars3 Stars4 Stars5 Stars

Using WP_Query to Fetch Posts

I was just putting together a WordPress widget for a client and I came across a small road block. I was using <?php query_post(); ?> to set the loop to act the way I needed it to but when the widget loaded up in the left sidebar, it caused some issues when going to a category page. The problem was the query I initialized in the sidebar was carrying over to the main section. I couldn’t figure out what to do until I stumbled up the wp_query function.

Category: Posts | Source: | | Report Broken Link
Processing your request, Please wait....

1 Star2 Stars3 Stars4 Stars5 Stars

Random Posts Without a Plugin

If your WordPress blog uses a home page or a landing page of some kind, featuring a random post on that page can serve a couple useful purposes. For one, it gives the reader an idea of what they can expect from your blog, especially if you make use of the Excerpt feature. Another benefit is that it helps keep your old archived posts visible. Normally people will only read the latest handful of posts, and ignore the rest. So this helps to open up the reader to even more of your valuable content.

Category: Posts | Source: | | Report Broken Link
Processing your request, Please wait....

1 Star2 Stars3 Stars4 Stars5 Stars

Display Thumbnails For Related Posts in WordPress

In this tutorial you’ll learn how to increase pageviews by adding thumbnails to related posts using the popular YARPP plugin and WordPress custom fields.

Category: Posts | Source: | | Report Broken Link
Processing your request, Please wait....

1 Star2 Stars3 Stars4 Stars5 Stars

How To Create A Featured Post Section

So, let’s say we want to have 10 posts in reverse chronological order on the homepage, and 1 featured post at the very top, and maybe style this featured post differently than the rest (hey it’s a featured post after all!). That is fairly easy to do if you follow some of the instructions from the WordPress Codex. But in most cases it’ll break the pagination so when you click on ‘previous page‘ or use a plugin like PageNavi, you’ll get the same posts on all subsequent pages. We don’t want that, we want people to be able to browse the older pages using the previous/next links.

Category: Posts | Source: | | Report Broken Link
Processing your request, Please wait....

1 Star2 Stars3 Stars4 Stars5 Stars

Formatting Your Posts the Easy Way

Have you ever slaved over the formatting of particularly tricky blog post then forgotten how you did it?  Ever gone back and edited an old post to hunt down the fiddly HTML you wrote so you can use it again in a new post?  Well, I have, and I just found out something that makes the whole process easier and quicker.

Category: Posts | Source: | | Report Broken Link
Processing your request, Please wait....

1 Star2 Stars3 Stars4 Stars5 Stars

3 Methods To Exclude Categories In A Post

Sometimes, we may want to exclude some categories from display in our main page or sidebar. There are a lot of methods to exclude these categories. Here i would like to share 3 types of different method to do so.

Category: Posts | Source: | | Report Broken Link
Processing your request, Please wait....

1 Star2 Stars3 Stars4 Stars5 Stars

Create A Latest Post Section At The Beginning Of Each Post

This will make sure those readers who reach your blog through search engine or referer will have a chance to read the latest article. So, how are you going to add this section? Do you need any plugin to do so? No, you don’t need any plugin to add this section. Simply follow this tutorial.

Category: Posts | Source: | | Report Broken Link
Processing your request, Please wait....

1 Star2 Stars3 Stars4 Stars5 Stars

How to Make a Featured Post Carousel

It’s becoming more and more common for blogs to feature certain posts at the top of the page. In this tutorial, we’re going to show you how to implement this in WordPress. We’ll be using the default theme, Kubrik, as our base theme, but it should be adaptable to most themes with some modification. There’s very little code and featuring posts is simple.

Category: Posts | Source: | | Report Broken Link
Processing your request, Please wait....

1 Star2 Stars3 Stars4 Stars5 Stars

Make Full Use of WordPress with the_excerpt_reloaded

Whether you know it or not, you’ll probably use the_excerpt on your website. At its simplest, the_excerpt will display the last 70 odd words from your posts on the homepage, or a couple of words explaining what the post is about, as it is on CatsWhoCode. But say you wanted to display 200 words and images. Without editing the core WordPress files, there is no way you can do that, without installing a plugin, like the_excerpt_reloaded.

Category: Posts | Source: | | Report Broken Link
Processing your request, Please wait....