#42546 no Post Options section

Landing Forums JupiterX WordPress Theme no Post Options section

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Douglas vanWolde

    I have followed the instructions here:

    I have added the custom code to my functions.php child theme.

    The Post Options still doesn’t show up on the Editor.

    Using this code:

     

    add_filter( 'jupiterx_post_options_post_types', 'my_new_jupiterx_metaboxes' );
    
    function my_new_jupiterx_metaboxes( $post_types ) {
    
    	$post_types[] = 'my_post_type_slug';
    
    	return $post_types;
    }
    
    
    

     

    Nodari

    Hi Douglas

    I have a better option for you since we included JetEngine plugin in our bundled plugins you don’t need to deal with the theme files anymore, you can create custom post types directly from the WordPress interface, please check this instruction: https://crocoblock.com/knowledge-base/articles/how-to-create-a-custom-post-type-based-on-jetengine-plugin/

    Douglas vanWolde

    Hi Nodari,

    Thanks for your reply.  Creating CPT wasn’t the problem.  Everything is working fine except for the bottom of the editing post type page is missing the familiar Post Options box.  Is there a quick fix to get the Post Options on my new CPT editing pages?

    If I uninstall CPT UI plugin, and start using JetEngine plugin, do I need to redo my CPT that I already created?

    Doug

     

    Amir Rather

    You can implement Post Options with custom code shown below adding it in functions.php file of your child theme:

    add_filter( 'jupiterx_post_options_post_types', 'my_new_jupiterx_metaboxes' );
    
    function my_new_jupiterx_metaboxes( $post_types ) {
    
    $post_types[] = 'my_post_type_slug';
    
    return $post_types;
    }

    where my_post_type_slug should be replaced with a slug of your custom post type.
    After that Post Options will appear in a single editor of a custom post type and you’ll be able to change settings for each post.

    PS: If the slug isn’t replaced the Post Options won’t shop up at all.

    Note: This code block adds the meta options for defined custom post type but some meta options may not work for some custom post types because of some technical limitations (for example it’s not possible to set sidebar for single product page via this Post Options section). Other options will work fine.

    Douglas vanWolde

    Hi Amir,

    I’ve done all this.  Yes I changed my_post_type_slug with a slug of my custom post type.  I have followed all of these instructions since the beginning.

    Not working for me.

    So I guess I will uninstall CPT UI plugin and start over with JetEngine.

    Doug

     

    Nodari

    Douglass, thank you for understanding,

    Well, yes, we recommend using a JetEngin in this case, it’s easier, safe and you don’t need to edit any files in the theme

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.
Login