Support » Plugin: WP Ajaxify Comments » Comments on category page

  • Resolved arimk


    Hi, it is me once again !

    I have comments in my category pages (it will always be comments of ONE post), how can I use your plugin so you don’t have to reload the category page once someone adds a new comment on the category page?

    Can I simply add (in the plugin or in the category page) a call to the plugin and it should work?

    Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author janjonas


    Could you please send me a link to your category page?

    thanks for the quick response

    You can see it here [LINKED REMOVED]
    wait a little as it loads and click on “General comments” at the bottom.

    It is a little rough right now, and you should also know that it will only be connected users that will comment so that is why the form is not looking well for none connected users.

    Plugin Author janjonas


    The plugin does not initialize the AJAX functionality on “non-comment pages” and theses pages are detected by the following statement
    ((is_page() || is_single()) && comments_open($post->ID)
    and I think this statement returns false on your category pages.

    Which theme are you using? How do I create such a category page with a comment form?


    It is a custom made theme, all is custom.
    The comment is linked to a specific post inside the category.
    After starting the loop of the post you use this :

    <?php global $withcomments; $withcomments = true;comments_template( '', true ); ?>

    So I will try to call it from the category page/or hack you plugin and make it call on the category pages. Will see if it works!

    Ok hacked your plugin :

    echo 'commentsEnabled:'.(!is_category('8') or (is_page() || is_single()) && comments_open($post->ID) ? 'true' : 'false').',';

    Working as intended! Thanks
    I Will edit my post to remove the link

    Btw is there a way to call the plugin from within the category page (or header)?

    Plugin Author janjonas


    What do you mean by “call the plugin”?

    I mean, asking the plugin to launch from within wordpress with a call.
    Nevermind it works great like that bu I don’t like touching “upgradable” pgaes like plugins as you always forget what you have change :/

    Plugin Author janjonas


    Ok, I see. This is not supported at the moment. I will think about supporting scenarios like yours out of the box in a future release…

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Comments on category page’ is closed to new replies.