Is is possible to find how how many tags (and categories) a post has and to display it?
something like this:
when a post has three Tags and two categories, at the end of the post show that number inside brackets, like so:
TAGS (3) | CATEGORIES (2)
I would like to have it so, because i would like that the tag/category list is hidden until the user clicks or hovers it.
Right now i am making the Tags into an unordered list like this:
the_tags('<ul><li>','</li><li>','</li></ul>');
thanks!
for tags you can use
refer this if you need more details :
http://codex.wordpress.org/Function_Reference/get_tags
http://codex.wordpress.org/Function_Reference/get_categories
Use this,
for reference
http://codex.wordpress.org/Function_Reference/wp_get_post_terms
Taking a little bit from all of you, this is what i ended up using:
Thank you all for your quick help! =)