WordPress.org

Forums

WP Ajaxify Comments
[resolved] Comments on category page (9 posts)

  1. arimk
    Member
    Posted 2 years ago #

    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!

    http://wordpress.org/extend/plugins/wp-ajaxify-comments/

  2. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

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

  3. arimk
    Member
    Posted 2 years ago #

    Hi,
    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.

  4. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    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?

  5. arimk
    Member
    Posted 2 years ago #

    Hi,

    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!

  6. arimk
    Member
    Posted 2 years ago #

    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)?

  7. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    What do you mean by "call the plugin"?

  8. arimk
    Member
    Posted 2 years ago #

    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 :/

  9. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Ajaxify Comments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.