Post Type Enhancements Module Documentation

πŸ“ Note: The Post Type Enhancements module is part of Neve Pro which you can get from here. If you would like to learn more about the Neve Pro Addon, take a look at Neve Pro Addon's full documentation.

This module extends the theme individual options available for regular posts, on custom post types.


πŸ–²οΈ Activating the module

1
Install the Neve PRO plugin, using these instructions.
2
Navigate to  Neve > Neve Options > Neve Pro.
3
Enable the  Post Type Enhancements Module.

πŸ“ Note: Please note there is a list of custom post types defined by third-party plugins with which this module is not compatible, you can check it on this page.


🧰 Individual Post Options

By default, the Neve theme brings a set of individual options while editing a post, an example is below. 

1
Navigate to Posts and create a new post.

2
The editor will be automatically opened, and you can start by adding a name to the post and content.
3
Click on the Neve icon to open the post settings.

πŸ“ Note: You can read more about these options in the following article.


πŸš€ Extended theme options for custom post types

Now that we know the Post Type Enhancements module extends Neve's individual post options to custom post types, let's take a look at how the global theme settings are also extended for custom taxonomies.

Once you created a new custom post type on your website, each set of options ( layout-related ) the theme can apply on pages related to that taxonomy, will appear in the Customizer duplicate, with a label stating to which type of posts will the settings be applied. 

One of the most used plugins is the Custom Post Type UI plugin, that eases the management of the custom post types and taxonomies that you create.

After installing and activating this plugin, the next step is to create custom post types with it:

πŸ“ Note: In order to make Neve Options appear, you have to enable the Custom Fields.

From the window where you edit the post, scroll down until the Support sections and make sure you check the Custom Fields option and then click to Save / Add the Post Type.

In order to enable all of the module's options, scroll down in the editor of the post type and make the Has Archive option true.

Now that you have created the post types, there are two places where you can find Neve's options:

  • individual - in the editor, by clicking on the Neve icon

πŸ“ Note: The options available here are common for both usual posts and posts created using the custom post types.

  • global - in the customizer ( Neve > Customize ). The extra options offered by Neve can be found in the Layout tab of the Customizer. In the image below, you can notice 2 custom post types ( jeans and T-shirt ), with the corresponding set of options.

Layout extended options

Single options

When clicking on the Single jeans ( or T-shirt ) tab, you will find a set of options that corresponds to the single posts of these post types. Click on the Use a custom layout choice to enable the available settings:

  • header layout - depending on the layout that you choose ( normal / cover ), the options available here will differ. This refers mainly to how the post is displayed.
    • cover

    • normal

  • page elements - from here you can change the visibility of the elements contained in the post ( by clicking on the πŸ‘ icon ), reorder them ( by clicking on the burger icon ), and adjust the space between the elements to obtain the desired appearance.

  • post meta - change the visibility of the meta elements ( by clicking on the πŸ‘ icon ), reorder them ( by clicking on the Reorder button ), add a new item by clicking on the corresponding button, and click on the πŸ”½ icon of each element to open its specific settings, or change the separator of them.

  • comments - manipulate the behavior of the comments area, by selecting how it's displayed, adding a section title, adjusting the padding and colors, or even configuring the Submit Form Section.

πŸ“ Note: For the comments section to work, make sure you have checked the Comments option in the Susports area of the Dashboard, similar to the Custom Fields case from above. 

To make sure that the comments are available for your posts, go Post > Edit, click on the βš™οΈ icon, and open the Discussion tab. From there, check the Allow comments option:

πŸ“ Note: More details about single post options can be found here.

Archive options 

When clicking on the jeans / Archive tab ( in this case ), you will open the set of options that the theme offers for the custom post types, after enabling the Use a custom layout option.

  • Layout - from here you can customize how the posts are being displayed on the blog page.
  • Ordering and content - allows you to customize the order of the displayed posts, the pagination, as well as post content order ( including changing their visibility and reordering them ).
  • Post Meta - decide which meta elements should be displayed, reorder them or add a new one.
  • Read More - creates a button / message that allows the user to access the complete version of the post.
    • πŸ“Note: The Read More button / text will be displayed only if the post has a certain length.

πŸ“ Note: More details about the archive page can be found here.


Content / Sidebar extended options

The Neve theme offers extended customizations for the content / sidebar area as well.

You can control the position of the sidebar on the single post and on the archive page:

  • Sidebar Layout - full width / left / right.
    • πŸ“Note: The sidebar layout depends on the configuration of the post's editor. If you have selected the Inherit Sidebar, then the position you pick in the Customizer will be displayed. Suppose you have selected another layout from the editor. In that case, the changes in the Customizer will not be visible on the website since the individual options have higher priority.

  • Content Width - use the slider to adjust the width.


Container extended options

You can also make configurations for the container of the custom post types.


Once you have selected a certain container style for an Archive or on a single page, all the archive / single pages will have the same style.


πŸ—‚ Useful Resources

Custom function

If you don't use the Custom Post Types UI plugin and you want access to the same options,  but a custom function, you have to use the following snippet:

/*
* Creating a function to create our CPT
*/
  
function custom_post_type() {
  
// Set UI labels for Custom Post Type
    $labels = array(
        'name'                => _x( 'Movies', 'Post Type General Name', 'twentytwentyone' ),
        'singular_name'       => _x( 'Movie', 'Post Type Singular Name', 'twentytwentyone' ),
        'menu_name'           => __( 'Movies', 'twentytwentyone' ),
        'parent_item_colon'   => __( 'Parent Movie', 'twentytwentyone' ),
        'all_items'           => __( 'All Movies', 'twentytwentyone' ),
        'view_item'           => __( 'View Movie', 'twentytwentyone' ),
        'add_new_item'        => __( 'Add New Movie', 'twentytwentyone' ),
        'add_new'             => __( 'Add New', 'twentytwentyone' ),
        'edit_item'           => __( 'Edit Movie', 'twentytwentyone' ),
        'update_item'         => __( 'Update Movie', 'twentytwentyone' ),
        'search_items'        => __( 'Search Movie', 'twentytwentyone' ),
        'not_found'           => __( 'Not Found', 'twentytwentyone' ),
        'not_found_in_trash'  => __( 'Not found in Trash', 'twentytwentyone' ),
    );
      
// Set other options for Custom Post Type
      
    $args = array(
        'label'               => __( 'movies', 'twentytwentyone' ),
        'description'         => __( 'Movie news and reviews', 'twentytwentyone' ),
        'labels'              => $labels,
        // Features this CPT supports in Post Editor
        'supports'            => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields', ),
        // You can associate this CPT with a taxonomy or custom taxonomy. 
        'taxonomies'          => array( 'genres' ),
        /* A hierarchical CPT is like Pages and can have
        * Parent and child items. A non-hierarchical CPT
        * is like Posts.
        */
        'hierarchical'        => false,
        'public'              => true,
        'show_ui'             => true,
        'show_in_menu'        => true,
        'show_in_nav_menus'   => true,
        'show_in_admin_bar'   => true,
        'menu_position'       => 5,
        'can_export'          => true,
        'has_archive'         => true,
        'exclude_from_search' => false,
        'publicly_queryable'  => true,
        'capability_type'     => 'post',
        'show_in_rest' => true,
  
    );
      
    // Registering your Custom Post Type
    register_post_type( 'movies', $args );
  
}
  
/* Hook into the 'init' action so that the function
* Containing our post type registration is not 
* unnecessarily executed. 
*/
  
add_action( 'init', 'custom_post_type', 0 );

As you may notice, the line 'supports' also contains the 'custom-fields' argument:

	'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', '<strong>custom-fields</strong>', )
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us