William Thomes
William Thomes

Reputation: 1

How do I add a custom post type with a custom taxonomy in WordPress?

I need to create a new post type called "Portfolio" and associate it with a taxonomy called "Project Type." What is the correct way to do this using register_post_type() and register_taxonomy()?

I want to create a custom post type called "Portfolio" in WordPress, which will be used to showcase various projects. Each portfolio item should be categorized using a custom taxonomy named "Project Type."

I am aware that WordPress provides functions like register_post_type() and register_taxonomy(), but I need a clear and detailed guide on how to properly register and associate them.

Upvotes: -4

Views: 36

Answers (1)

Mohib Ali
Mohib Ali

Reputation: 1

You can install the plugin in wordpress known as ACF (Advanced Custom Field) where you can create a custom post type and the taxonomy also you can add the custom meta fields.

Upvotes: 0

Related Questions