troubleshooting Question

Understanding Taxonomies

Avatar of steva
steva asked on
WordPress
3 Comments1 Solution41 ViewsLast Modified:
As I understand the term, "taxonomy" is just a way to group your posts, like "products." You can indicate your post is  a "product" by specifying "product" as a taxonomy of the post in wp_insert_post().  But you could also just add a custom field to the post, like "group=product" and then to get all the product posts, ask for all the records that had a custom field of group whose value was product.   I'm assuming, though,  that the latter method would require WordPress to look through all the posts for those that had a custom field of group whose value was product, while the taxonomy method essentially threads all the records together that have the taxonomy product so they're accessed directly instead of through a search through every post.  Is that correct?

Second, is "category" a built  in taxonomy?  So that if I assign a category of product when I do my wp_insert_post() then when I ask for all records with category =product,  will  WordPress  be able to access all the product posts directly, i.e., all the posts with category=product?

Thanks for your help.
ASKER CERTIFIED SOLUTION
Jason C. Levine
Don't talk to me.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros