wpDiscuz - WordPress Comment Plugin
Custom post type no...
 
Share:
Notifications
Clear all

[Solved] Custom post type not showing on forms entry

3 Posts
2 Users
1 Likes
209 Views
jharries
Posts: 12
Topic starter
(@jharries)
Active Member
Joined: 2 years ago

Good Day,

I have just created a custom post type called Tips with slug jhhtips. That works fine and the standard wordpress comment form shows on the single entries for that custom post type. 

However, I can't get the WPDiscuz comments to show on said custom post type entries.

The problem is that the custom post type does not show as a check box on the WPDiscuz forms page.

Please advise how I can get the form to show me the option. 

I have cleared the cache on the site and cleared my browser. Even tried a different browser.

This is the code I'm using to register he new post type And I have attached screen shots.

Thanks

John

//ADD CUSTOM POST TYPE FOR TT$T

function custom_post_type() {

// Set UI labels for Custom Post Type
$labels = array(
'name' => _x( 'tips', 'Post Type General Name', 'generatepresse' ),
'singular_name' => _x( 'Tip', 'Post Type Singular Name', 'generatepresse' ),
'menu_name' => __( 'Tips', 'generatepresse' ),
'parent_item_colon' => __( 'Parent Movie', 'generatepresse' ),
'all_items' => __( 'All Tips', 'generatepresse' ),
'view_item' => __( 'View Tips', 'generatepresse' ),
'add_new_item' => __( 'Add New Tip', 'generatepresse' ),
'add_new' => __( 'Add New', 'generatepresse' ),
'edit_item' => __( 'Edit Tip', 'generatepresse' ),
'update_item' => __( 'Update Tip', 'generatepresse' ),
'search_items' => __( 'Search Tip', 'generatepresse' ),
'not_found' => __( 'Not Found', 'generatepresse' ),
'not_found_in_trash' => __( 'Not found in Trash', 'generatepresse' ),
);

// Set other options for Custom Post Type

$args = array(
'label' => __( 'Tips', 'generatepresse' ),
'description' => __( 'John\'s Tips, Tricks & Thoughts', 'generatepresse' ),
'labels' => $labels,

'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( 'jhhtips', $args );

}

 

 

 

Screen Shot 2022 07 30 at 9.38.19 AM
Screen Shot 2022 07 30 at 9.37.47 AM

 

 

 

2 Replies
Asti
Posts: 5516
 Asti
Support
(@asti)
Illustrious Member
Joined: 5 years ago

@jharries,

Please check out the Fixing Tip 5: https://wpdiscuz.com/docs/wpdiscuz-7/getting-started/missing-comment-form/#tip_5

jharries
Posts: 12
Topic starter
(@jharries)
Active Member
Joined: 2 years ago

Sorry, never mind, I found it. I had not specified the following:

I guess not having comments in the array confused the forms editor. All good now.

'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields', ),

Share: