Posts

Showing posts with the label register_taxonomy_for_object_type

How to add categories and tags option in custom post type in wordpress

How to add categories and tags option in custom post type. Just copy and paste below code into your theme's functions.php  function rj_register_post_type() { register_post_type('games',     array(     'description' => 'Game custom post type',         'show_ui' => true,         'exclude_from_search' => false,         'labels' => array(             'name' => 'Games',             'singular_name' => 'Game',             'add_new' => 'Add New Games',             'add_new_item' => 'Add New Game',             'edit' => 'Edit Games',             'edit_item' => 'Edit Game',...