I am working on a problem to get the most recently used tags within the last 30 days.
My current thought process is not working, so I am trying to come up with an alternative method.
I came across get_term and get_terms, thinking they may be a way to an actual functioning solution to my problem.
However, searching for “What is the difference between terms and tags in WordPress” is too general and I cannot find an answer.
What is the difference between tags and terms? It what situations would get_term or get_terms be used?
Thanks.
Simple yet tough question, taxonomies are just groups of categories, while terms are just single categories within these groups.*
So, for example, if you create a new post and choose category for it – the category itself is a term, and opening
YourWordpressURL/wp-admin/edit-tags.php?taxonomy=category
you’re going to see all the categories (taxonomy).Terms and Tags are similar at first glance, they just work differently:
http://lorelle.wordpress.com/2005/09/09/categories-versus-tags-whats-the-difference-and-which-one/
http://www.usabilitypost.com/2008/10/17/categories-vs-tags/
*this is possibly sometimes not true, as terms don’t have to be categories, but I hate word “terms”, it just confuses me, categories fits better
In general everything is a »Taxonomy«:
But there’s also the difference between “hierarchical” and non-hierarchical (a.k.a. flat) Taxonomies – I guess I don’t have to explain that.