Comments on: The Ultimate Guide to WordPress Conditional Tags http://www.themelab.com/the-ultimate-guide-to-wordpress-conditional-tags/ We build High Quality, Good Looking Premium WordPress Themes that are Easy to Use and ready for just about anything. Tue, 15 Apr 2014 07:43:24 +0000 hourly 1 http://wordpress.org/?v=3.8.3 By: AnonyMouse http://www.themelab.com/the-ultimate-guide-to-wordpress-conditional-tags/#comment-22519 Sun, 24 Feb 2013 03:43:36 +0000 http://www.themelab.com/?p=214#comment-22519 Same here. Coding a thesis_hook_before_sidebar, only && worked.

]]>
By: Jon Wade http://www.themelab.com/the-ultimate-guide-to-wordpress-conditional-tags/#comment-19162 Sat, 25 Aug 2012 07:42:47 +0000 http://www.themelab.com/?p=214#comment-19162 Hi, I am trying to add some code to the loop.php of my theme, so that the author of each post is displayed below the title. I have done this, but I do not want it to appear on the front page (I use a static page for the homepage). Is there a way to say “if not the front page”?

Struggling! Many thanks.

]]>
By: MikeD http://www.themelab.com/the-ultimate-guide-to-wordpress-conditional-tags/#comment-17803 Tue, 30 Aug 2011 09:21:56 +0000 http://www.themelab.com/?p=214#comment-17803 This was EASILY the most understandable guide I’ve come across in my search for using conditional tags in WordPress. Can’t thank you enough!

]]>
By: Seth Shoultes http://www.themelab.com/the-ultimate-guide-to-wordpress-conditional-tags/#comment-16518 Sat, 22 Jan 2011 21:32:46 +0000 http://www.themelab.com/?p=214#comment-16518 If anyone wants to see another example of how to use Leland’s tutorial to fix a Jquery laden theme or a busted plugin.

I posted a real life example of a Themeforest Jquery Fiasco in my forums.

Hope you will find it as useful as I did.

]]>
By: Clare http://www.themelab.com/the-ultimate-guide-to-wordpress-conditional-tags/#comment-15555 Sun, 12 Sep 2010 07:25:32 +0000 http://www.themelab.com/?p=214#comment-15555 Thanks for documenting this – I was looking for a way to add some information to my footer that I only wanted to appear on posts not pages. Your code worked a treat!

]]>
By: Skip Savage http://www.themelab.com/the-ultimate-guide-to-wordpress-conditional-tags/#comment-14970 Wed, 23 Jun 2010 22:48:42 +0000 http://www.themelab.com/?p=214#comment-14970 Thanks for the help.

Sorry to report that OR or || as separators didn’t work for me.

For anyone else with this question, I found using && gave me the result I was looking for.

For example,

`is_page(‘one’) && is_category(‘two’)`

]]>
By: Leland http://www.themelab.com/the-ultimate-guide-to-wordpress-conditional-tags/#comment-14961 Wed, 23 Jun 2010 13:11:48 +0000 http://www.themelab.com/?p=214#comment-14961 Try putting an OR or || as a separator. AND won’t work since a page cannot be assigned to a category.

is_page(array(’something’,’someone’)) || is_category(’somewhere’)

]]>
By: Skip Savage http://www.themelab.com/the-ultimate-guide-to-wordpress-conditional-tags/#comment-14817 Fri, 04 Jun 2010 06:33:03 +0000 http://www.themelab.com/?p=214#comment-14817 Great reference post you’ve written. Perhaps for the benefit of others with this same question, could you help me figure out how to conditionally tag both pages and a category in a single Widget Logic field?

For example, I have `is_page(array(‘something’,'someone’))` and I need to add `is_category(‘somewhere’).

But I am stumped.

]]>
By: Brow http://www.themelab.com/the-ultimate-guide-to-wordpress-conditional-tags/#comment-10434 Sat, 12 Dec 2009 16:19:51 +0000 http://www.themelab.com/?p=214#comment-10434 Awesome post! I was stuck on getting posts to show on JUST ONE category and this helped big time.

Thanks a million!

]]>
By: iamseo http://www.themelab.com/the-ultimate-guide-to-wordpress-conditional-tags/#comment-8777 Mon, 02 Nov 2009 09:33:44 +0000 http://www.themelab.com/?p=214#comment-8777 Wanted to let you know that this is possibly the page I look at most when coding WP themes :)

]]>