0
votes
2answers
29 views

How to get any tag ID

I want to exclude a certain tag from my home page not a category only post that hold the tag for example "olive"; I found a function for that which is like this function exclude_tag($query) { ...
0
votes
1answer
124 views

Print_r displaying two different post->ID if placed in sidebar or single.php

My website is displaying, if print_r, two different ID for the same post. If i ask: <?php echo $post->ID;?> in the single.php it gives me a number. If i do the same thing in the sidebar it ...