Remove Ads From Individual Categories

June 17, 2008

Have you ever wondered how exactly you could choose which categories do and which don’t display your advertisements?   Maybe you have a Sponsored Review category and want to make sure that all posts filed in that category don’t display any ads. This is something that you as a user of WordPress have the ability to do without to much effort.  What you need to do is paste the following code into your blog around your advertisement code: <?php if ( !in_category(10) && !in_category(11) ) { ?> This is your... [Read the full story]

Displaying Related Category and Author Content in WordPress

June 17, 2008

View any single-post page from a wordpress blog and you’ll notice two sidebar modules called “More from this category” and “More from this author”. As a designer, you want to help users explore topics in a forward or sideways motion from anywhere on the site. You can accomplish this by pulling in related content and providing logical jumping-off points, without requiring users to work backward. Here’s a simplified version of the code, which must be included outside of the loop: <?php //Gets category... [Read the full story]

Useful WordPress Tricks

June 17, 2008

As you already know WordPress is one of the most popular blog platforms and it has grown so powerful that you can use it also use as Content Management System (CMS). Grab Category name <?php $category = get_the_category(); echo $category[0]->cat_name; ?> So this grabs a single category name (it’s not printing it just keeps it for now). Template Page <?php /* Template Name: Free Themes */ ?> <?php get_header(); ?> //the loop <?php get_footer(); ?> You should be familiar with this it makes... [Read the full story]

Adding an Email This Button to Your Blog

May 29, 2008

Before getting to the code, I wanted to first say that this code is designed to allow readers to click on the button and have it open up their default email software and create a subject and link that point to the post the reader is currently visiting. This code is not designed to allow readers to contact the blog author. If you are wanting your readers to be able to contact you, I recommend you use one of the many great contact form WordPress plugins available. You should never embed your email address into some HTML code... [Read the full story]

Optimize your title tags

May 27, 2008

There are plugins available to help optimize your title tags, however, editing one line of code can help you avoid an additional plugin. To me it’s worth it – less plugins, better performance. So let’s do it. Locate the title tags in your theme’s header.php file. It will look something like this: <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title> Now change it to this: <title><?php... [Read the full story]