Support » Plugin: Postie » Displaying Inline Images?

  • Resolved ColePhoenix1969

    (@colephoenix1969)


    I looked through and didn’t see that anyone else had a similar issue. I’m actually trying to display inline images. It always comes in the same format, so I am presuming I can accomplish this with filter_postie.

    The image format is:

    Image: http://somesitehere.com/thumb.jpg (http://www.somesitehere.com/clicktopage.html)

    So, I need to get the parens and the word Image: out to make the link work. And, what I would like to accomplish would be for postie to actually display the inline image and associated link.

    Where it would show up as:

    <img src=”http://somesitehere.com/thumb.jpg” />

    Is this possible or am way off base here?

    http://wordpress.org/plugins/postie/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I was just playing with this, and my solution was to write an sql statement that runs in cron that automatically replaces part of the Image: with img src code.

    The first part is:

    [ Moderator note: code block fixed. ]

    update wp_posts set post_content = replace(post_content, "Image: <a><img src = \"") ;

    It’s not elegant and its not perfect. But, it seems to work OK enough.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    See http://postieplugin.com/extending/

    Using the postie_post_before filter you can use preg_replace() to accomplish the same thing as your sql statement.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Displaying Inline Images?’ is closed to new replies.