Tagged Questions
1
vote
1answer
130 views
How can I hide tags on a child-category page, if that tag has not been used?
I have a section of my site where I'm using child-categories and tags to sort content.
I'm have a tertiary navigation for the tags (templates/nav-tags.php):
<nav class="side left">
<ul ...
0
votes
1answer
66 views
Conditional for a Single Post That Belongs to a Category?
I have categories like gaming and movies on my website and when a user visits any of these categories the content in the sidebar is displayed depending on the category they are in. So gaming content ...
1
vote
2answers
88 views
How can I link a CSS file only on single posts?
If I understand is_single() correctly, it's only supposed to return true when the current "post" (in a generic sense) is a literal post (i.e., it has a post_type of post), and that it will return ...
0
votes
1answer
117 views
Category Template: Need to display different content on first page of archives
So my issue is that I need to create two versions of a category.php template. Now, I know very well that if I want to display posts from just one category, I duplicate category.php and call it ...
0
votes
2answers
189 views
show div only if have a related post inside
I want to have a related box to show up - but only if a related post is inside the div.
If theres no post the whole "related_box" div should be not shown. Any idea?
Here's the code so far.
...
-2
votes
2answers
221 views
Combining multiple conditional statements [closed]
I need a 3 part conditional statement with all negatives but I can't get it to work. I need to say that the post isnt in category 'videos' or its child categories and isn't from the author with the id ...
0
votes
1answer
132 views
marking a post that was sticky on category template
i want some how to mark the post that has been featured (was a sticky post) in the category template. in wordpress logic it should be something like -
was_sticky();
anybody?