WordPress.org

Ready to get started?Download WordPress

Forums

Facebook
[resolved] Prevent Code Generation for Custom Post Type (2 posts)

  1. jackiewp
    Member
    Posted 1 year ago #

    I am trying to use this plugin together with the Premise plugin for creating landing pages. I need to not have the FB LIKE button appear on these custom post landing pages. How can I do that?

    With other plugin I was able to execute remove_action and remove_filter calls to prevent code generation on landing page.

    What should I do with this plugin (specifically, the LIKE button)

    Thanks!

    http://wordpress.org/extend/plugins/facebook/

  2. Niall Kennedy
    Member
    Plugin Author

    Posted 1 year ago #

    Plugin version 1.1 supports custom post types. You may remove the like button output from the_content filter for a specific post.

    example: remove_filter( 'the_content', 'facebook_the_content_like_button', 30 )

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.