• Resolved progressivecoder

    (@progressivecoder)


    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)
  • Branko

    (@brankoconjic)

    Hello @progressivecoder,

    You can change that template file in your child theme. Copy that file to your child theme » template-parts » entry folder and remove the condition from the copied file.

    We will also include a filter that will allow you to change that condition in the next theme update.

    Thanks!

    Theme Author sinatrateam

    (@sinatrateam)

    Resolving this issue.

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.