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]
Highlighted Menu in CSS
June 17, 2008
Here is a quick and easy way to make menus with highlighted sub-links. Minimal code for maximum effect. CSS Code #css-target-menu { background: #000; padding: 5px; width: 300px; } #css-target-menu ul { font: 11px “Trebuchet MS”, Verdana, Arial; list-style: none;margin: 0; padding: 0; width: 300px; } #css-target-menu li { background: #000; padding: 2px; } #css-target-menu li:hover { background: #333; } #css-target-menu li ul { width: 224px; } #css-target-menu li ul li a { color: #999; } #css-target-menu li a { color:... [Read the full story]




















