Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Meitar

    (@meitar)

    It is supported; include an image in your excerpt and set the Post Format to Image. Tumblr Crosspostr will create an image post on Tumblr.

    Thread Starter johnh10

    (@johnh10)

    Is there another way? I already have several hundred standard posts with excerpts already defined. I don’t want to have to change each of those posts. My theme doesn’t even support post_formats I think.

    Can I just add a function to grab the first image from the content and append it to the excerpt?

    Plugin Author Meitar

    (@meitar)

    Is there another way?

    Why do you need another way when one exists?

    I already have several hundred standard posts with excerpts already defined.

    You can use the “Tumblrize Archives” option in your WordPress blog’s Tools menu to send all your post archives to Tumblr in one click.

    I don’t want to have to change each of those posts.

    You might be able to find and use a batch-edit plugin to make the same change to many of your posts at once, or you can use a command line like this. However, if you want to make a different change (like adding a different image) to each post, then you’re going to have to change your posts as you want them. No way around that. Sorry.

    My theme doesn’t even support post_formats I think.

    The plugin implements Post Formats itself, so this works regardless of whether your theme supports that feature. Have you read this plugin’s description…?

    Can I just add a function to grab the first image from the content and append it to the excerpt?

    I don’t know; can you? I certainly won’t try to stop you. 🙂

    Thread Starter johnh10

    (@johnh10)

    Okay thanks. I just made the code changes in the plugin.

    I’ve been having similar issues, and I’m wondering if it’s more Tumblr than you.

    I’m used to using Jetpacks Tumblr plugin, and for a good long time it would just post the first image. Then it stopped, and frankly Tumblr’s Support Services suck. You try to explain an issue to them and they either don’t respond or act like english is a third language.

    I switched to you, and I’ve gotten better results, but still spotty. I have an image attached to every single one of my posts, the “featured image” in WP. And Tumblr won’t post ’em, with JetPack. It’s been hit or miss with you. Am I doing something wrong? Please say yes, because that’ll make this thing soooo much easier.

    Plugin Author Meitar

    (@meitar)

    admiralmpj, Tumblr Crosspostr does not support crossposting from WordPress’s “Featured Image” data. It only supports crossposting an image that is included as part of the WordPress post’s or excerpt’s content itself. So, technically, yes, you are doing something wrong. 🙂

    Also, I have to chime in to agree that Tumblr’s services, not just their support services, totally suck. I actually wrote Tumblr Crosspostr because their Terms of Use became so obscenely onerous that I wanted to give people a way to move their content AWAY from Tumblr, which is why Tumblr Crosspostr is actually a bidirectional bridge; you can use it to backup/archive/keep a copy of your Tumblr Blog in your own WordPress site, as a more portable format. To this day, Tumblr is arguably in violation of European Union law because they do not provide their own export function.

    For more on this, please read the editorial (scroll down a bit) section from If you miss Tumblrize, Tumblr Crosspostr is for you on my blog.

    Hey @johnh10, can you post what you changed to get the plugin to work? I am also trying to achieve the same thing but am not very good at PHP.

    Thread Starter johnh10

    (@johnh10)

    Hey mtchieu,

    The plugin does work, I just needed a specific change for the blog I had.

    In my case, all my blog posts have an image, so I found the easiest answer was to force all my posts to be tumblr photo posts by adding this ‘jph’ line:

    private function WordPressPostFormat2TumblrPostType ($format) {
            return 'photo'; //jph force image posts

    That might work for you.

    Being to total neophyte to coding that I am, where do you add that? In the HTML of the post itself, or in the Code of the Template?

    Thread Starter johnh10

    (@johnh10)

    Neither.

    Find the tumblr-crosspostr sub-directory in the plugins directory and edit the file tumblr-crosspostr.php

    Search for the function above and add the //jph line.

    Note this is not supported by the author and it’s best to know some PHP before making these types of modifications.

    I can’t get my excerpt posts to include an image when they are sent to tumblr. I’ve tried changing the post format to “image” and that doesn’t seem to matter. I have an image at the top of the post. If I send to tumblr without checking the excerpt option it does post the whole thing including the image.
    Note: I have nothing in the “excerpt” section under the post. I’m assuming this is only used if you want to make a custom excerpt rather than the default. I did try putting a different excerpt in there though as well and it still used the default. With no image.
    Sorry, I’m new to all of this so I’m sure I’m doing something wrong.
    Thanks

    Also now changing from the excerpt option to non-excerpt and updating the post does not change it back in tumblr. That did work before. Is there a cache somewhere I can clear or something. Or is it just a little buggy? I will admit I updated the post several times in the process of testing, might that botch things up?

    Plugin Author Meitar

    (@meitar)

    I can’t get my excerpt posts to include an image when they are sent to tumblr. […] I have nothing in the “excerpt” section under the post.

    If you want to send an image to Tumblr but you’re using an Exerpt instead of your main post, then your excerpt needs to at least include an <img alt="" src="" … />, too.

    Thank you very much for your quick response.
    To clarify my problem. If I have “image” ticked as my post type and hit update, no change at all happens to my tumblr post. It remains in the state it was since the last time I had “standard” ticked and updated. It doesn’t reflect my “send excerpt” state change, nor does it change any changes I’ve made to the content of the “excerpt” text box.
    But in “standard” mode, I can at least get the toggle between excerpt and non-excerpt to work, along with reflecting any text I type in the excerpt box. But no image shows up.
    I DO have an alt and src in my img html in the editor for my image. Do I need to add something like that to the “excerpt” text box?
    Really sorry again about my lack of knowledge on how this works, but I truly appreciate your help.

    Plugin Author Meitar

    (@meitar)

    You asked:

    If I have “image” ticked as my post type and hit update, no change at all happens to my tumblr post. It remains in the state it was since the last time I had “standard” ticked and updated.

    As per the online help shown in this screenshot:

    Note that Tumblr does not allow you to change the post format after you have saved a copy of your post, so please be sure to choose the appropriate Post Format before you save your post.

    You asked:

    in “standard” mode, I can at least get the toggle between excerpt and non-excerpt to work, along with reflecting any text I type in the excerpt box. But no image shows up.
    I DO have an alt and src in my img html in the editor for my image. Do I need to add something like that to the “excerpt” text box?

    I already answered:

    If you want to send an image to Tumblr but you’re using an Exerpt instead of your main post, then your excerpt needs to at least include an <img alt="" src="" … />, too.

    To clarify: when you select “Send excerpt” then Tumblr Crosspostr treats the excerpt as the post body. If you have nothing in the excerpt, but you do have “Send excerpt” selected, then Tumblr Crosspostr auto-generates an Excerpt for you in the same style as WordPress auto-generates excerpts. These excerpts do not contain <img> tags so if you also select “Image” for the Post Format, then Tumblr is going to reject your cross-post with an error and you are going to get unexpected results.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Feature request: send excerpt image’ is closed to new replies.