-1
votes
0answers
35 views

How To Display Categories Conditionally on “The Loop”

I'm trying to get specific categories to display, and only when a given page is displayed. I have tweaked the start of "The Loop" to look as shown below but it doesn't work. Any suggestions on how to ...
-2
votes
1answer
143 views

Weird html output of single_cat_title - is not inside of the html element?

I'm displaying a single "featured" post at the top of the blog index page, and category pages. I'm using this conditional to display the category name of the category page if it is a category page, ...
0
votes
2answers
956 views

How to conditionally hide author name on Single.php if category is “news”, otherwise if category is something else display author name?

I would like to be able to conditionally hide the author's name on the Single.php if the Category name is equal to "News" and otherwise if the category is something else hide it. How do I go about ...
0
votes
1answer
187 views

How do I display something on a particular category page?

How would I display HTML conditional on a particular category page? Say my permalinks to the category pages are http://www.mysite.com/category/awesome-category How would I cast the <?php if ... ...
0
votes
1answer
85 views

Problems with my conditionals in single.php by category

In my single.php file I would like to have a conditional that checks for the category of the post and display certain images and layout. Here is what I have: http://pastebin.com/dy6TE1yr
0
votes
1answer
205 views

Exclude a category from a query that includes its parent category

I am trying to use ids to control the structure of the output of my categories. I need to exclude a category that is part of the parent category that is being queried. What I am trying is : ...
1
vote
1answer
643 views

functions.php conditional tag - only show in single.php?

//Geo Map add_action( 'woo_post_inside_after', 'my_geo_mashup' ); function my_geo_mashup() { global $post; if ( in_category('listings') ) { echo GeoMashup::map(); } } Works to ...