New Landing How can we help? Atelier Adding meta box to custom post type

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Atelier
  • #240584
    anerdsworld
    Member
    Post count: 10

    Hello,

    Great Theme!

    I would like to add the theme’s meta options box to my custom post type that I created.

    I read one similar question by another user, but the answer did not solve my problem.

    Can you let me know how I can achieve this.

    Thank you

    #240589
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    The meta boxes are setup in the file includes/meta-boxes.php.

    Each option array you can specify which post type to show that option on, by adding your post type name to the pages array. Ex:

    'pages' => array( 'post', 'page', 'portfolio', 'product', 'team', 'galleries' ),

    Thanks.

    #240646
    anerdsworld
    Member
    Post count: 10

    Thank you for that.

    It worked… But

    It’s pulling a different set of meta options that are not the same as the standard meta option on a Page post type.
    For example there is no page Style, Page Heading, Page background etc…

    Is there another file other than: includes/meta-boxes.php, that I could be adding my custom post type name in ?

    #240648
    anerdsworld
    Member
    Post count: 10

    I partly figured out the issue
    But I can’t actually save or upload any images as well in the meta options.
    Sorry it’s seem that’s more to it then just adding the post type name.

    #240730
    Kyle – SUPPORT
    Moderator
    Post count: 35880
    #240881
    anerdsworld
    Member
    Post count: 10

    Hello,

    That’s the same post that I initially saw; and you’ve pretty much repeated the same thing.
    So..
    You can’t help me with this ?

    #240891
    anerdsworld
    Member
    Post count: 10

    I figured it out.

    Thanks

    #240892
    anerdsworld
    Member
    Post count: 10

    I figured it out.

    The post type name had an upper case. Should be lower case.
    use the slug.

    Thanks

    #240934
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great! No problem

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register