• Resolved axwellion

    (@axwellion)


    Is it possible to allow comments on each individual glossary word page? (Not the main complete glossary list page, but rather the individual pages for each individual word).

    I have tried to insert a comment block via a short code, but it seems to be ignored. It works on all other pages. Normally a page and post have a check box to allow or disallow comments (“discussions”) on each page and post, but I don’t see that on the tooltipy word pages. I also tried to enable this option globally via WordPress Settings / “discussions”, but it didn’t make any difference.

    My thinking was to allow the reader to disagree with my definition and allow them to suggest their own definition.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jamel.Z

    (@lebleut)

    Hi @axwellion
    First I’m so sorry for my very late answers

    To fix this issue you need to add this piece of code in your theme’s ‘functions.php’ file :

    add_filter( 'register_post_type_args', 'tooltipy_allow_comments', 10, 2 );
    
    function tooltipy_allow_comments( $args, $post_type ){
    	global $tooltipy_post_type_name;
    
    	if( $post_type == $tooltipy_post_type_name && !empty($tooltipy_post_type_name) ){
    		$args['supports'][] = 'comments';
    	}
    	return $args;
    }

    This will allow comments only in new Tooltipy keyword posts (of course if the option you mentioned is checked )

    To allow comments on old keywords you have to check the ‘Allow comments’ option on each keyword or find a tool to make all for once

    Thanks

    • This reply was modified 4 years, 1 month ago by Jamel.Z.
    • This reply was modified 4 years, 1 month ago by Jamel.Z.
    Thread Starter axwellion

    (@axwellion)

    Perfect. That did the trick!!! Thank you Jamel!
    Now comments can be added to a definition page. Also, what I was happy to see is that the tootipy popup did NOT show the comments – they are only seen on the actual keyword page, which is also exactly what I wanted.
    For some reason the default WordPress comment form is being shown, rather than my custom comment form from WPdiscuz – but that is something I will have to investigate.

    Plugin Author Jamel.Z

    (@lebleut)

    Happy to hear this helps ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can comments appear on each individual glossary page?’ is closed to new replies.