Tagged Questions
-2
votes
1answer
72 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
502 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
96 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
61 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
185 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
511 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 ...