Support » Plugin: Custom Post Type UI » There is no discussion / comments in a custom post.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    If you have a single-shavua.php file you’ll want to make sure that it has a comments area in the file, so that it can output that info. If you don’t have that file, then does your single.php have it? Also, just to be certain, does your post type support comments?

    In the post settings, V is marked on comments.
    Another custom post has comments option.
    Only a certain type does not exist. Even though it is marked V

    • This reply was modified 3 months, 2 weeks ago by  moshe1111.
    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    The templates are still an important piece because even if their is comment support enabled, the templates need to show them including the comment form.

    I tried several templates and saw no change
    I do not understand the code

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    I’d look for things like comments_template() and similar, and the Twenty* year-based themes are usually pretty good resources to get some general understanding of themes as well.

    I’m running into this same issue. I set the CPT to support comments. I then look at the TwentyNineteen theme and inspected the single.php file where I found this bit of code:

    // If comments are open or we have at least one comment, load up the comment template.
    <?php 
    if ( comments_open() || get_comments_number() ) {
        comments_template();
    }
    ?>

    I copy/pasted that into my single-blog.php file. But my next problem is that the “Discussion” section is not visible in the WP editor. I went to Screen Options and it doesn’t show up.

    This seems to be a frequent problem, would really appreciate clear directions that could be added to your documentation.

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    The first part is a theme issue more than an issue that we can solve from our plugin. Regarding the Discussion part, I could see possible need for some docs there, but first we would really need to determine why it’s not showing up, which could be one of many various reasons, including gutenberg vs classic editor situations.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.