Add metabox to custom post type in wordpress !

Here is the way to Add metabox to custom post type in wordpress ..

1) Add taxonomy to existing or custom post type ..

taxonomy add in custom type in wordpress

 

2) You can add by using this tag… “Quality” is a Name of the taxonomy and “movie” is a post type. customize this as per your’s need.

<?php
register_taxonomy(
'Quality',
'movie',
array(
'hierarchical' => false,
'label' => __( 'Quality', CURRENT_THEME ),
'singular_name' => __( 'Quality', CURRENT_THEME ),
'rewrite' => true,
'query_var' => true
)
);
?>

3) Thanks 🙂

For any help Contact me here..

If this help you then.. Can you buy a Cup of Coffee for me by nst webcreation paypal--OR-- nst webcreation blog coffee cup

Published by

NST

Myself Narender Singh Thakur ( NST ) and i share my Experience/Knowledge and Tricks for folks and beginners to solve their issues while making websites through this Planet.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Click to Chat