Common set of custom functions for wordpress

May 27, 2010

When designing WordPress themes, we always add a common set of custom functions to the wordpress theme’s functions.php file. This speeds up development time and optimizing many key aspects of WordPress, because we don’t have to hunt for and individually copy the same slew of functions for every theme. In this article, we deliver prime collection of custom functions to enhance your WordPress site. These new functions will help you optimize your development process while enhancing WordPress with essential functionality.... [Read the full story]

Using wordpress shortcodes to show members-only content

May 14, 2009

This tutorial will cover three methods for setting up shortcodes to use in your posts and pages that will allow you to hide or show content depending on who’s viewing it. Content for users that are not logged in Many people want to focus on hiding content from this group of users, but you want to start by showing them content. Most traffic to your site will likely be through non-logged in users, so make sure you give this group of people something. Open your theme’s functions.php file in your favorite text editor. Add... [Read the full story]

Create Google-Style Page Navigation for wordpress

March 26, 2009

It can be very tedious to navigate through a category on a WordPress blog. Your navigation options tend to be limited to “Next Page”/”Previous Page”. Not the most efficient method in the world… When you do a search on Google, you can skip to page 3, 4, 5 or anything else. And once you do, you can always click back to page 1. It makes flicking through a large number of results much, much easier. So, why don’t we recreate that in WordPress by ourself? This bit is easy. Just copy and paste the following... [Read the full story]

Create a wordpress 2.7 compatible comments template

November 20, 2008

WordPress 2.7 includes a lot of new enhancements, but one of the big ones is the new comment functionality. Comments can be threaded, paged, etc. This is all built in, but unfortunately, your theme must support it. So, for theme authors, I’d suggest getting to work on making your themes compatible right away. How to create a wordpress 2.7 compatible comments.php If you want your theme to be backward compatible as well, then there’s a simple way to do it. Just check for the wp_list_comments function, like so: if (function_exists('wp_list_comments'))... [Read the full story]

Huge Compilation of WordPress Code

May 6, 2008

If you are a theme designer, or just enjoy customizing your existing WordPress theme, it can sometimes be a hassle digging around for the WordPress code you need. I’ve spent a lot of time on this site collecting various snippets of code since launch and decided that it would probably be more convenient and useful to people if I was to consolidate them all into one post for easy reference. Here are the snippets of code I’ve managed to collect. If you have any WordPress code you’d like me to add, please leave a comment... [Read the full story]