Add custom post type and custom taxonomy on wordpress

Posted: June 12, 2013 in web

For the custom post type, you can generate the php code using http://generatewp.com/post-type/. Copy/modify and paste it on you functions.php on your theme directory.

For taxonomy/category, generate your php script using http://generatewp.com/taxonomy/. Copy/modify and paste it on you functions.php on your theme directory. On the line that says “register_taxonomy( ‘genre’, ‘post’, $args );” change ‘post’ to the name of your custom post type. If you are using the default example on the generator for the post type it will be ‘product’.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s