Recently I had the problem where I wanted to display something in Wordpress but only in one category. I first tried some Wordpress Plugins but then decided its time to learn how to insert something in one category only and exclude it from the rest of the site. So I got it working with this code. The if stands for if you are in that category and the category is 211 in the example. You find the category number under manage and then Categories. So with this code you can display something in one category that you dont want to be displayed on the rest of the site.
<?php if ( in_category(211)) {
echo ‘<span class=”something”>Paste something here you want to enter in your category
</span>’;
}?>
Related posts:
- How to display something only on your home page with Wordpress. Last night I was trying to make something display on one of my blogs on...
- How to add advertising to specific categories in Wordpress As promised I said I will be starting my Wordpress section please join the feed...
- Hide certain categories from displaying on your homepage in Wordpress First of all you need to find this piece of code in your theme,...
- Getting traffic to your Wordpress Blog I am not genius and I dont have a phd in coding or anything but...
- ANC YOUTH LEAGUE WILL eliminate enimies eliminate |iˈliməˌnāt|verb [ trans. ]completely remove or get rid of (something) : a policy that...
- So you know how to code and stuff. Use a wordpress theme. Often I browse blogs where people claim to know coding. Now I dont know coding...
- Wordpress vs other I should of used Wordpress on this blog, every sentence I type i think I...
- The beginnings of a new wordpress theme I just started with a new theme. After contacting people and finding out that the...
- Make Wordpress post faster I search all over the internet until eventually and ironically i got to wordpress.org and...
- Why Wordpress has become my cms of choice for any website. I used to use Drupal and Wordpress and Joomla and Xoops. That was until they...
- Welcome to Wordpress Pieces Hi. My name is Esvl in short. I am a full time blogger and a...
- Google Adsense, the more ads you have on your page the less money you make online Using Google Adsense still makes money online, and the great thing about Google Adsense is...
- Why niche blogging is better than normal general category blogs Niche blogging is the best way to get customers to your site for a specific...
- Make money online with Smorty Smorty is by far one of my favorite people to do review for. Other wise...
- Syria continues to block websites The list of websites blocked from Syria is growing by the day, Youtube, facebook, blogger.com...
- A free wordpress theme that looks like Deviantart This hot looking wordpress theme is nice, clean and is made after the looks...
- Now here is something interesting for Wordpress fans With all the political chaos going on we can take our focus of that for...
- Why does Google like Drupal more than Wordpress? Last night I had issues with a site running on Drupal. I could not get...
- Best plugin for wordpress If I could think of the best plugin of all the wordpress plugins I think...
- Wordpress themes: Wordpress-v2-theme 5Thirtyone is one of my favourite designers for Wordpress themes and as you might know...
- Brilliant theme designs. Blogohblog, my favourite Wordpress theme designer Have you ever visited Blogohblog.com? well if not you really should do your wordpress blog...
- Wordpress 2.5 favourite function I guess everyone is already writing about Wordpress 2.5 but I would like to just...
- Wordpress 2.5 and plugins. A bit of blogging trouble Wordpress 2.5 is getting better by the minute. I am discovering new things about it...
- Make money online in South Africa with Adbrite While there are not many things available to South Africans to make money online, you...
- Digg and Wordpress dont mix Back in the day, sort of like two years ago when the internet was still...


(No Ratings Yet)
