Certain Code Below Post on Certain Categories

Posted in: Newspaper
Post count: 263

So i know the option for Related Posts are based on the category. Same with widgets. Is there a code that I can insert below posts for my custom code to display based on the category? For example, I am trying to display ‘code A’ in the ‘category 1’ section but not in ‘category 2’ section. Thanks in advance.

Post count: 6600

Hi,

You can sue the is_category() conditional tag and set you custom code to be displayed only on specific categories, you can read more about this here: http://codex.wordpress.org/Function_Reference/is_category
Hope this helps!

Thanks

Post count: 263

I see how to put certain categories below posts but I have certain iframes that I want to add below only specific posts. If that possible? Having different codes below certain posts?

Post count: 6600

Hi,

I believe so but it will not be easy, besides category you could try to add a conditional for posts and use the ID for those specific posts. Either way you would need custom work for this and you should get some to help you with it as we cannot provide custom work at this time because we work hard on the development, updates, fixes and support and the time and available resources don’t allow us to do custom work. You can also get a freelancer from sites like: http://studio.envato.com/

Thanks

Post count: 263

Hey, I got it with your reference above. Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.