Title: Disable on Specific Posts
Last modified: August 21, 2016

---

# Disable on Specific Posts

 *  Resolved [Frank Gomez](https://wordpress.org/support/users/frank6tg/)
 * (@frank6tg)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/disable-on-specific-posts/)
 * I want to disable Facebook Comments on specific posts. Can I use a custom function
   in a child theme to accomplish this?
 * [http://wordpress.org/plugins/facebook-comments-plugin/](http://wordpress.org/plugins/facebook-comments-plugin/)

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

 *  [Alex Moss](https://wordpress.org/support/users/alexmoss/)
 * (@alexmoss)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/disable-on-specific-posts/#post-4533465)
 * It’s best at the moment to embed the shortcode into your theme and then disable
   the output on each specific page/posts. More information can be found within 
   the [plugin homepage](http://peadig.com/wordpress-plugins/facebook-comments/).
 *  [Tony Franco](https://wordpress.org/support/users/tony-franco/)
 * (@tony-franco)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/disable-on-specific-posts/#post-4533466)
 * Hi Alex,
 * Thanks by your reply.
 * I tried what is in the homepage, but i can´t make it work…
 * If it has a shortcode to disable on certain posts, it would be easy to me, like[/
   fbcomments], because i don´t know how to use the code directly to php…
 * Regards,
 * Tony
 *  [Alex Moss](https://wordpress.org/support/users/alexmoss/)
 * (@alexmoss)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/disable-on-specific-posts/#post-4533467)
 * no, you’d have to insert PHP code. For example, if I don’t want to include the
   comments on post ID 678:
 *     ```
       if (!is_page('678')) {
       echo do_shortcode('[fbcomments]');
       }
       ```
   
 *  [Tony Franco](https://wordpress.org/support/users/tony-franco/)
 * (@tony-franco)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/disable-on-specific-posts/#post-4533468)
 * Hi Alex,
 * Sorry for my question, i´m new…
 * Where do i put this code?
 * Regards,
 * Tony
 *  [Alex Moss](https://wordpress.org/support/users/alexmoss/)
 * (@alexmoss)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/disable-on-specific-posts/#post-4533469)
 * You can insert this within single.php
 *  Thread Starter [Frank Gomez](https://wordpress.org/support/users/frank6tg/)
 * (@frank6tg)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/disable-on-specific-posts/#post-4533470)
 * I had to go another route because my client has about 300 posts. I’m not going
   to itemize these. I ended up creating separate post templates and then disabled
   them by template with CSS – not an elegant solution but it works.
 *  [rhoody](https://wordpress.org/support/users/rhoody/)
 * (@rhoody)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/disable-on-specific-posts/#post-4533472)
 * I cam from [http://wordpress.org/support/topic/disable-fb-comments-on-lingle-posts?replies=2#post-5352303](http://wordpress.org/support/topic/disable-fb-comments-on-lingle-posts?replies=2#post-5352303)
   
   I also will have around 500 pots (FAQs)I am nit gonna change the single.php for
   each new FAQ. Guess need to look for another plugin then. At the end if you have
   the opt-in shortcut there should be also a opt-out somehow.
 *  [Alex Moss](https://wordpress.org/support/users/alexmoss/)
 * (@alexmoss)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/disable-on-specific-posts/#post-4533475)
 * Let me have a look into how this can be done best for you…

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

The topic ‘Disable on Specific Posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/facebook-comments-plugin_577794.svg)
 * [Facebook Comments](https://wordpress.org/plugins/facebook-comments-plugin/)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-comments-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-comments-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-comments-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-comments-plugin/reviews/)

## Tags

 * [specific post](https://wordpress.org/support/topic-tag/specific-post/)

 * 8 replies
 * 4 participants
 * Last reply from: [Alex Moss](https://wordpress.org/support/users/alexmoss/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/disable-on-specific-posts/#post-4533475)
 * Status: resolved