Tips & Tricks

Remove spaces when echoing the_title

Ever wanted to print or echo the WordPress title attribute without spaces?

4 months ago

Display the_excerpt only if there is text

Have you ever wanted to display the excerpt only if you write one? A simple couple lines of code can…

4 months ago

Add a shortcode

This is a simple one. /** * Your Blog title * */ function my_blog_title() { $blogname = get_bloginfo('name'); return '<span…

4 months ago

Adding a external file after the first post

How might you display a Google ad after the first post or anything you like? It is very simple. You…

4 months ago

A simple way to query posts

Here is a simple way to call query_posts with an array of options. For all options you my use visit:…

4 months ago

Adding a favicon to your site

Looking to add a favicon to you site? Inside your WordPress theme's functions file (functions.php) add the following to inside…

4 months ago

Add additional meta boxes to Hybrid Theme

At the time of writing this post I have Theme Hybrid as my parent theme, and am using a custom…

4 months ago

Sick of images being to large for the content area?

Have you ever uploaded an image that might have been a tad bigger than the width of your content area?…

4 months ago

How to: Display RSS feeds from anywhere

Here is a simple way to display any RSS feed in your WordPress blog. <?php include_once(ABSPATH . WPINC . '/rss.php');…

4 months ago

Remove the title attribute using jQuery

In WordPress, when you use wp_page_menu your anchor attribute's usually carry a title with the same name. I'm not sure…

4 months ago