Title: Shortcode or php code?
Last modified: August 21, 2016

---

# Shortcode or php code?

 *  Resolved [JenniferG73](https://wordpress.org/support/users/jenniferg73/)
 * (@jenniferg73)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-or-php-code/)
 * 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/](http://wordpress.org/plugins/seo-facebook-comments/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [bemcapaz](https://wordpress.org/support/users/bemcapaz/)
 * (@bemcapaz)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/shortcode-or-php-code/#post-4028279)
 * 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
 *  [vallovic](https://wordpress.org/support/users/vallovic/)
 * (@vallovic)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/shortcode-or-php-code/#post-4028290)
 * 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.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Shortcode or php code?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/seo-facebook-comments_251815.svg)
 * [SEO Facebook Comment](https://wordpress.org/plugins/seo-facebook-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seo-facebook-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seo-facebook-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/seo-facebook-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seo-facebook-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seo-facebook-comments/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [vallovic](https://wordpress.org/support/users/vallovic/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/shortcode-or-php-code/#post-4028290)
 * Status: resolved