Add a taxonomy for posts in WordPress without using a plugin - General Discussion Forum - Discussion Forum - Photon Flux | Professional WordPress repair service, worldwide, fast response
4
share (joys, benefits, privileges etc) with others

Adding a taxonomy to a post in WordPress without using a plugin

Recently in the development of a WordPress website, the project needs to show a "case show" module, where each case belongs to a different industry category, such as "medical", "education", "real estate" and so on. "Medical", "Education", "Real Estate" and so on. I used register post type() to register a custom post type named case to store these contents. However, when editing these case posts in the backend, I found that there is no place to add an industry category for the case.

While it's possible to add taxonomies via a plugin, in order to keep the code light and manageable, I'd like to implement taxonomy registration manually in code. This leads to a specific question:How do I add a taxonomy to a custom post type without using a plugin?


Contact Us
Can't read the article? Contact us for free answers! Free help for personal, small business sites!
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: info@361sale.com
Working hours: Monday to Friday, 9:30-18:30, holidays off
commentaries Total 1

Please log in to post a comment

    No comments

first aid

first aid

online time
9:00 - 18:00

Contact Customer Service

Swipe to contact customer service
telephone call 020-2206-9892
QQ contact 1025174874
Customer service mailbox info@361sale.com