Support » Plugin: WP Ajaxify Comments » Ajaxify Comments inside loop

  • I have comments inside a page loop, how can get Ajaxyfiy working?
    I works on single page.

    Here is code for comments inside page loop

    <span class="collapseomatic" id="form<?php the_ID(); ?>">Kommentera (utan facebook-login)</span>
    								<span id="swap-form<?php the_ID(); ?>" class="collapseomatic" style="display: none;">Stรคng</span>
    								<div id="target-form<?php the_ID(); ?>" class="collapseomatic_content">
    								<?php global $withcomments; $withcomments = 1; comments_template(โ€œ/comments.phpโ€, true);?>

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


    Do you have multiple comments form on one page?
    This scenario should work with the next version which is currently under development…

    Yes i have. ๐Ÿ™‚ Great ๐Ÿ™‚

    Plugin Author janjonas


    Please try out the new developer version 0.20.0 from here:

    A new option “Post container selector” was added which needs to match the elements that defines the different posts (that are shown on the same page). Please note: Each post container needs an ID attribute.
    A second new option “Comment pages URL regex” could be used to define a regex that decides (based on the URL) which pages contains comment forms are.

    Hope this helps…

    Tnx, i will try now ๐Ÿ™‚

    Hi i have this tag <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>
    in buddypress default theme, i tried with#post-<?php the_ID()?>;but it does work

    Plugin Author janjonas


    the “Post container selector” needs to be a jQuery selector that is executed on client-side, e.g. you cannot use PHP expressions. Please try to use


    If this does not help, please send me a link to your page where I can reproduce the problem…

    It doesn’t work again :/
    Here is link of my page

    Plugin Author janjonas


    Have you set the option “Comment pages URL regex”? It needs to be a regex that decides (based on the URL) which pages contains comment forms are. You can try to set the option to “/.*/” to initialize the WP-Ajaxify-Comments on every page.
    If this does not work, please send me login data to enable me to test the comment forms on your page.



    I have the same problem.
    my posts are in tags:
    <div id="article-<?php the_ID(); ?>" class="sujet"></div>
    After testing the settings you transmitted to us, (div[id^=”article-“]), I have these messages in firebug:
    [WP-Ajaxify-Comments] Search comments container (selector: '#article-1 #comments')... Not found
    I have sand you a MP with my website if you want to look.
    Thanks a lot for your work!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Ajaxify Comments inside loop’ is closed to new replies.