Here’s 2 solutions i tested:
Try adding support for comments in your custom post type code
'supports' => array( 'comments' ),
You could also use add_post_type_support
add_action('init', 'wpsites_comments');
function wpsites_comments() {
add_post_type_support( 'events', 'comments' );
}
Related Posts:
- Is it possible to use a single custom post as the site front page
- Listing a post’s categories and subcategories
- How do I show google ads between post content?
- Add inline style to get_the_category_list
- Help with figuring out the future post workaround
- Disable single view for specific post category
- Only nextpagelink on wp_link_pages
- Display a post map on a blank/new page
- How To Pass Current Post Type ID from Single Template To Custom Page Template
- Is it possible to create rel=”noindex, nofollow” for a single post if contain bad keywords?
- Custom seperate Single.php
- Set a cookie only in single posts
- Custom post type not respecting template hierarchy
- diffrent style for post single page
- WordPress object for comments frame [closed]
- I’m having a problem viewing the Youtube video
- Use different «Single.php» for custom categories
- force https except one page/post
- Single custom post type template not working (single-custom_post_template.php) not working
- Single.php category entries not showing right colours
- Link from archive-page.php to single-page.php
- How to check if a post is in categories x,y,z inludint their subcategories
- Changing the display of the themename_posted_on() function
- How to Highlight current category on category and single page template?
- Exclude single page from function
- WordPress, alternative single post template
- get full real path of thumbnail post img wordpress
- how to loop through this in blog single?
- Modify post template on Divi Theme
- I want to signin from first wordpress site to other wordpress website without registration..without using network mode
- Try to showing product file size on product single page
- Improve related posts
- Get active term on single (CPT) page
- Having single posts appear under the blog homepage and highlight menu items properly?
- Single.php loading fully on localhost but not on server
- explain why is_single doesn’t work
- Conditional for single-{post-type}.php
- How do I get the category URL from get_the_category?
- Custom permalink structure only for default posts
- How do I create a link that will always show the latest post?
- Posts in multiple Categories different single.php
- How to show a post single post in page template
- Create sub single pages
- WordPress Single Conditional for Search Page
- Insert After Second Paragraph Without Tag?
- How to add shortcode tags in single.php [closed]
- How to display different single post template based on author?
- How to show link to next posts in single.php
- Remove arrows from previous and next link
- pagination redirecting from page number url before page requested
- in_category() works in single.php but not in page.php?
- Need to display same custom post type on 2 different singles templates
- Show all posts in sidebar in single.php
- custom post type parsed as attachment
- Add & store extra fields – WordPress Comments
- Adding conditional content to single post-type template
- How to make the link to the category for a post go to corresponding page number in archive?
- How do I display a custom field from a custom taxonomy in single.php?
- the_excerpt() in content.php and get_template_part() in single.php
- Single page not working for custom post type
- My single.php page does not show the related data to the post which is clicked
- Force redirect single.php to index
- Display custom post types in wp_list_pages
- single.php with different look by category
- How to Manually Code Shortcode?
- How to use WP_Query() on single.php?
- Help with a custom rewrite
- How to use single.php for creating, reading and editing Custom Posts with ACF
- How to present a div only when the index.php is accessed for/by the single post pages
- get_terms (or tax_query) for term of current post?
- how to make an array of post id’s in is_single
- Single.php the_excerpt loads same as the_content not loading read more line
- What is wrong with my WP_Query Arguments?
- trying to show single post but displays all post on a custom post type
- Custom Post Type Specific Post Template
- How to move meta information in TwentyTwelve’s single post template?
- infinite loop on page with comments after changing comments.php and header.php
- WordPress – When visiting a `single post/ single.php` my category menu item link becomes active
- custom wp_list_categories in single.php
- Loop all post on single.php
- Different template parts when on different pages
- get_the_terms child terms for current post/custom post only
- custom post type single page
- custom post type single post preview for pending status
- If is single in header.php [duplicate]
- Target pages using Woo Commerce single product page template
- Only show related posts when another post has same term
- DIVs not showing correctly on CPT?
- permalink to single page
- Custom post type single display is ommited
- Add wp-link-pages to post
- Query child posts on parents single.php?
- Pagination issue with Single.php
- is_singular won’t call my functions?
- Single file upload
- Custom single.php files for different post formats
- Can I have a specific template for products even if they are standard posts and not CPT?
- No matching template found when using single.php
- Adding PHP code to single template in 2023 edition of WordPress theme
- How to display product variations on same row