I want to be able to sort my category listings by different fields. I figure tags (or any arbitrary field) is a good way to do this. But I can’t see how to add tags to a Category.
Ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From this WordPress StackExchange Q&A:
Add custom taxonomy fields when creating a new taxonomy
These are not tags, but custom fields being saved in
wp_optionstable. And they are saved and retrieved using the category ID, e.g.,get_option( "taxonomy_$t_id" ).Check the full Q&A for other solutions. Revised code: