WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Tumblrize] add source from original post to tumblr photo

[Plugin: Tumblrize] add source from original post to tumblr photo

  • Hey guys,

    i know this is simple php but i just cant seem to figure it out. All i want to do is post a picture in wordpress with just the title of the post and an image. But when it goes to tumblr i want the image to link back to the original wordpress post. I think it has something to do with $postlink? i think its around this part of the code im just not sure what the simple solution is…

    // Gather valid data for Tumblr post types.
            if ('photo' === $post_type) {
                $pattern = '/<img.*?src="(.*?)".*?\/?>/';
                $matches = array();
                preg_match($pattern, $post_body, $matches);
                $photo_source = $matches[1];
                $post_body = strip_only($post_body, '<img>');

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

Viewing 1 replies (of 1 total)
  • can this not be fixed?

    when i make a post, i automatically want it to feed the post url to the “Set a click-through link” in tumblr.

    so if i go into tumblr to edit the tumblr post it would have the link to the wp post in the
    “Clicking this photo links to the URL:”

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Tumblrize] add source from original post to tumblr photo’ is closed to new replies.