WordPress.org

Forums

SEO Facebook Comment
[resolved] Shortcode or php code? (3 posts)

  1. JenniferG73
    Member
    Posted 1 year ago #

    Hi,

    Can you help us with some code in either a shortcode (or the code to create a shortcode) or php code that we can use for placing the comments on the page.

    Thanks,
    Jenn

    http://wordpress.org/plugins/seo-facebook-comments/

  2. bemcapaz
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Jenn,

    The version 1.5.1+ of the plugin now supports this feature, all you have to do is go to the part of the code of the page that you wan't the plugin to be shown and add the following code

    do_action('seo_facebook_comments');

    Thanks for the feedback

  3. vallovic
    Member
    Posted 1 year ago #

    This is a great feature and I'm using it right now, but I think that if we use it on a given page, then the comments shouldn't be rendered again.

    Right now, using the do_action PHP code, I'm getting the comments box 2 times, so I added a boolean in the FBComments class that checks if the comments box has been already rendered - if false, renders it, if true, don't render.

    Maybe there's a more elegant way to do this, but it worked for me without much hassle.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SEO Facebook Comment
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.