• Resolved LukeJames3

    (@lukejames3)


    I see that an extension to automatically convert a URL into a clickable link already exists. Would it be possible to automatically convert an image URL into the HTML code for an image?

    For example, converting this URL:
    http://example.com/image.gif

    Into this:
    <img alt="" src="http://example.com/image.gif" class="alignnone" width="130" height="100" />

    If this is possible, how would I be able to do this? Thank you for the support!

    https://wordpress.org/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Sorry, unfortunately, I don’t have an Extension for that 🙁 As the internal code for the Automatic URL conversion Extension comes from inside WordPress, it’s also not possible to just use that.
    Using the tablepress_cell_content filter hook, this is however possible, you’d just need some small custom programming.

    Regards,
    Tobias

    Thread Starter LukeJames3

    (@lukejames3)

    Thanks for the quick reply and the alternative solution. Please could you explain how I could use the tablepress_cell_content filter hook to achieve this when you have time?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    my suggestion would be to take a look at PHP source code of the Automatic URL conversion Extension, or at this thread for example: http://wordpress.org/support/topic/filter-8?replies=9

    That should give you a basic idea of how the PHP code needs to be structured.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Automatic Image URL Conversion’ is closed to new replies.