Archive for the ‘WordPress’ Category

Google Authorship: How To Show Author Information in Search Results (and my Frustration With it)

WordPress: How to Display Author Information in Google Search Results.

This tutorial is specific to WordPress, but if you use other blogging platforms, you may be able to adapt some of the instructions. This tutorial, is intended for single-author WordPress blogs. References will be given for multiple-author blogs and for Guest bloggers.

Several months ago, Google started including authors profile in Search Results by highlighting authors in SERPs. Continue Reading »

WordPress Tip: How To Separate Comments From Trackbacks & Pingbacks Using wp_list_comments Function

In this tutorial, I will show you how to separate pings (Trackbacks & Pingbacks) from comments when using the wp_list_comments() function in WordPress. The wp_list_comments() function is located in the comments.php file in your theme´s folder.

The wp_list_comments() purpose is to display all comments (including Trackbacks & Pingbacks) for posts based on a variety of parameters including ones set in the dashboard in Settings -> Discussion panel. Continue Reading »

WordPress Tip: How To Exclude Pages From wp_nav_menu Function

In this tutorial, I will show you how to exclude certain pages from the navigation menu when using the wp_nav_menu() function in WordPress. The wp_nav_menu() function is usually located in the header.php file in your theme´s folder.

To my surprise, I discovered that the wp_nav_menu() does not contain “exclude” as one of its parameters. So in this case, how to prevent certain pages from showing up in the menu? Continue Reading »

How To Add HTML Sitemap For Custom Post Types in WordPress

In this tutorial, I will show you how to dynamically display an HTML Sitemap for Custom Post Types in WordPress without the need of a plugin. Dynamically means that the Sitemap updates automatically with every new Custom post added. Yes, there are plugins that add an HTML Sitemap to your blog. But I encourage you to read my previous post about unnecessarily adding plugins to your theme, and you don´t need a plugin for such a simple task. Continue Reading »

How To Add Sortable Custom Columns in WordPress Dashboard

In a previous tutorial, I showed you how to display a plain, non-sortable “Views” Column for Posts in the WordPress Dashboard. In this tutorial, I will show you how to make that “Views” Custom Column Sortable for Posts, ascending or descending based on the number of post views.

A WordPress developer asked me the following question: Is there a way to make the “Views” Custom Column sortable in the WordPress dashboard? Continue Reading »

How To Display Most Commented Posts in WordPress Without a Plugin

Do you want to show your Most Commented Posts on your Blog? In this tutorial, I will show you how to display your most popular posts (based on Comments) in WordPress Without a Plugin. Probably you already have seen Blogs displaying the Most Commented Posts and you wonder how it is done.

Yes, there are plugins that display the most popular posts on your blog, but they all tend to do a lot more than you need. Continue Reading »

How To Display Most Viewed Posts in WordPress Without a Plugin

Do you want to show your Most Viewed Posts on your Blog? In this tutorial, I will show you how to display your most popular posts (based on Views) in WordPress Without a Plugin. Probably you already have seen Blogs displaying the Most Viewed Posts and you wonder how it is done.

This tutorial is a natural progression from my previous tutorial: How To Track & Display Post Views Count in WordPress Without a Plugin. Continue Reading »

How To Track & Display Post Views Count in WordPress Without a Plugin

Do you want to know how many times a post has been viewed on your Blog? In this tutorial, I will show you how to count post views and display it on your WordPress Blog and also in the dashboard without the need of a plugin. Probably you already have seen some Blogs displaying a View Counter for each post and you wonder how it is done. Continue Reading »

Pagination for Custom Post Types in WordPress Without a Plugin

For a WordPress blog, pagination refers to displaying a limited number of posts per page. Pagination allows users the ability to navigate much easier and deeper into the archives. In this post, I will show that my previous tutorial about adding Pagination without a plugin in WordPress, can also be used on Custom Post Types without any modifications. Continue Reading »

How To Style Author’s Comments in WordPress Without a Plugin

In this tutorial, I will show you how to Highlight and Style Author’s Comments on WordPress Posts (or Pages) without a plugin. If your WordPress theme, does not already style the Author´s comments differently from your visitors comments, and you like to know how to do that, then this tutorial will show you the way, along with several examples and scenarios and all the details you need. Continue Reading »