Support » Plugin: Simple Facebook Connect » Support for Custom Post

  • Hi!

    I use Simple Facebbok Conect Plugin in my site.
    Plugin works perefctly, but NOT SUPPORT CUSTOM POST TYPES.
    For example in my site have SLIDER (CUSTOM POST) but I don’t want that when I add one it be published.

    So I modify plugin code and send it via mail to Samuel (Otto) 2 weaks ago, but have not received any response from him.

    If someone is interested to this update, that publishing on facebbok only the types selected in configuration, reply to this post: I will send the file modify via e-mail.


    P.S. @otto: As I wrote in the email, I’d be happy if I could help you in updating of Simple Twitter Connect plugin. So if you want send me a copy of the latest version… 😉

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42) Admin

    I have not received any code from you, however what you are describing is not a feature that I will add to the plugin. The plugin publishes custom post types that are marked as “public” automatically, and adding some sort of extra options is not something that I want in the plugin.

    Decisions, not options. If you don’t want it publishing a CPT, don’t make that CPT into a public one.

    If you want to customize which post types it publishes, there is the sfc_publish_post_types filter which was added for that purpose.

    Hi Otto.

    Thanks for reply.
    I sent code to on 30 November.

    Can you explain how use sfc_publish_post_types and where I can set it?


    Hi Otto!

    Mail addres is right?

    Can you explain how use sfc_publish_post_types and where I can set it?

    Can you send me a copy of your plugin Simple Twitter Connect?

    Plugin Author Samuel Wood (Otto)

    (@otto42) Admin

    Yes, that is my email address. No, I’ve never received any email from you.

    “sfc_publish_post_types” is a filter hook. You need to know how to program PHP and how to use filters.

    Also, STC is not functional at the moment due to Twitter’s API changes.

    I resend the mail just now.

    I’m a developer and know very well WordPress and PHP 😉

    What you’re suggesting is to change all the Custom Post with a filter hook functions: but if I had different types of Custom Post, I should create a function for each of them.

    My solution instead allows choose what publish and what not publish with a click: this would give more flexibility to your great plugin!

    For example in my site I use bbPress and with my solution I can exclude replies and publish only the topics: all with a single click!

    I only ask you to take a look at my modification without necessarily include it in your plugin: my just wants to be a suggestion to improve SFC 😉

    I know that STC is not functional at the moment.
    I asked you the old version (as you can read in the mail that I send) just to be able to help you in API updating and release as soon as STC.


    Plugin Author Samuel Wood (Otto)

    (@otto42) Admin

    No, the filter hook allows you to define what CPTs that the plugin will auto-publish. One hook. One function to tell it what to publish. No need for options or settings.

    Your solution would basically force the user to choose. I dislike that, I prefer to simply publish everything, CPTs and all, which have been designated as “public” post types. The filter hook is there in case you want to limit that even further.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Support for Custom Post’ is closed to new replies.