WordPress.org

Ready to get started?Download WordPress

Forums

Simple Facebook Connect
Custom Post Types (4 posts)

  1. Noel
    Member
    Posted 3 years ago #

    Hi Otto,

    Is there any particular trick with pushing custom post type date to Facebook? If I do a "manual" link, i.e. paste the link within a facebook wall post, it's no problem. There it pulls from the meta description and I've manipulated that to include structured custom post type data, however I'm sure it's a different story when pushing the post directly after creating it...

    Thank you!

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 3 years ago #

    In the latest version of the plugin, custom post types are supported for any custom post type that has its 'public' parameter set to true.

    Quick way to check: If the Facebook Publisher meta box is added to the Custom Post Type's editing page, then auto-publish will work for it too. If the editing page lacks that meta box, then it won't.

    The "public" parameter is the one in the register_post_type call:
    http://codex.wordpress.org/Function_Reference/register_post_type

  3. Noel
    Member
    Posted 3 years ago #

    Thanks Otto,

    It's showing with no problem, the only issue I have is that I don't use the description of custom post type, so when it goes on to FB, there's an image but the text-excerpt of fb.com is '...'. It's no problem when I do it manually, because then I can tell FB exactly what I want next to the image (via the header), i.e.:

    if (is_singular('adoptions')) {
    echo '<meta name="description" content="';
    echo 'New Pet for Adoption! ' . $name . ' is a ' . $age . ' year old ' . $gender . ' ' . $breed . ' who needs a home!';
    echo '" />';}

    Just not sure how I can make that work with the automatic publish feature, if at all? It might be best to create a custom RSS and then maybe you use a different tool to automatically publish.

    What do you think?

    Thanks again,

    Noel

  4. Noel
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic