WordPress.org

Ready to get started?Download WordPress

Forums

Simple Facebook Connect
Support for Custom Post (7 posts)

  1. shecky
    Member
    Posted 1 year ago #

    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.

    Regards.

    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... ;-)

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 1 year ago #

    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.

  3. shecky
    Member
    Posted 1 year ago #

    Hi Otto.

    Thanks for reply.
    I sent code to otto@ottodestruct.com on 30 November.

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

    Thanks.

  4. shecky
    Member
    Posted 1 year ago #

    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?

  5. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 1 year ago #

    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.

    http://codex.wordpress.org/Plugin_API#Filters

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

  6. shecky
    Member
    Posted 1 year ago #

    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.

    Regards.
    Davide.

  7. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic