Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #59115
    Yuna
    Participant

    Hi,

    I created a Custom Post Type and Taxonomy, in Adventurous Pro.

    I see that the ‘Adventurous Options’, which control the sidebar layout as well as the Featured Content are not showing in the Custom Post’s Admin ( Add New / Edit ) area .

    Is there a way to activate these options for Custom Post Types, in a Child Theme ?

    Best Regards,

    Y.M.

    #59192
    Sakin
    Keymaster

    @Yuna: That will be bit difficult and I guess, you might need to hide developer to work on it. You need to use add_meta_box() function in your child theme functions.php file to add in. For example see the below code

     // Add the Meta Box  
    function adventurous_child_add_custom_box() {
    	add_meta_box(
        'adventurous-options', //Unique ID
        __( 'Adventurous Options', 'adventurous' ), //Title
        'adventurous_meta_options', //Callback function
        'post' //Your post type
        ); 	
    }
    add_action( 'add_meta_boxes', 'adventurous_child_add_custom_box' );
    #59203
    Yuna
    Participant

    Hi Sakin,

    That did the trick.
    I just added ‘functions.php’ to my child theme and replaced the ‘post’ with the
    slug of my custom post type.
    The ‘Adventurous Options’ now shows up in the admin area of my Custom Post Type that I activated in the functions.php.
    Tried altering the layout of several entries, and it seems to work fine.
    So far so good… 🙂

    Thank you very much.

    I guess I can call myself a budding junior developer !! 😉

    Y.M.

    #59211
    Sakin
    Keymaster

    @Yuna: Oh! I didn’t knew that you are developer. Cool, great work 🙂

    #62381
    Horst
    Participant

    Hello Sakin,

    I have the same problem. With 1 Custom Post Type it works. What should I do with several Custom post type?

    greeting
    Horst

    #62392
    Horst
    Participant

    Hello Sakin,

    I have found the way Adventurous Options display in several Custom Post Types.
    My problem is solved.

    greeting
    Horst

    #62717
    Sakin
    Keymaster

    @Horst: nice you solved it. Thanks 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Enabling 'Adventurous Options' in the Custom Post Admin’ is closed to new replies.