How to add meta box support for custom post type ?
-
Hello , i have created some custom post types and it works fine but on the archive pages and singular pages of custom post types the meta box value’s doesn’t show up. After some research and digging the theme files i found out that the entry-meta.php inside of template-parts/entry has this
/** * Only show meta tags for posts. */ if ( 'post' !== get_post_type() ) { return; }
. Now i would like to know if i could change this to show meta tags for custom post types also .
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to add meta box support for custom post type ?’ is closed to new replies.