Recall & Review
beginner
What is a taxonomy term in WordPress?
A taxonomy term is a label or category used to group content in WordPress. For example, tags or categories are taxonomies, and their individual items like 'News' or 'Sports' are terms.
Click to reveal answer
beginner
Which WordPress function is used to create a new taxonomy term?
The function
wp_insert_term() is used to add a new term to a taxonomy in WordPress.Click to reveal answer
beginner
How do you retrieve all terms of a taxonomy in WordPress?
Use the function
get_terms() with the taxonomy name to get all terms in that taxonomy.Click to reveal answer
intermediate
What is the purpose of
wp_set_object_terms()?It assigns one or more terms to a specific post or object, linking content to taxonomy terms.
Click to reveal answer
intermediate
How can you update a taxonomy term's name or slug?
Use
wp_update_term() with the term ID and an array of new values like 'name' or 'slug'.Click to reveal answer
Which function adds a new term to a taxonomy in WordPress?
✗ Incorrect
wp_insert_term() is used to create new terms.What does
get_terms() return?✗ Incorrect
get_terms() returns all terms of a specified taxonomy.Which function assigns terms to a post?
✗ Incorrect
wp_set_object_terms() links terms to posts or objects.To change a term's name, which function should you use?
✗ Incorrect
wp_update_term() updates term details like name or slug.What is a taxonomy in WordPress?
✗ Incorrect
Taxonomies group content by categories or tags.
Explain how to add and assign a new taxonomy term to a post in WordPress.
Think about creating the label first, then linking it to content.
You got /3 concepts.
Describe how to retrieve and update taxonomy terms in WordPress.
One function fetches terms, the other changes them.
You got /3 concepts.