WordPress.org

Ready to get started?Download WordPress

Forums

CF Internal Link Shortcode
Link images (6 posts)

  1. FaceLord
    Member
    Posted 3 years ago #

    This is a great plugin. I've been looking for something exactly like this. The only thing I can't get it to do is use image as the link.

    As far as I can tell, you can only wrap text in the anchor. Perhaps, an alternate syntax could be added. Such as:

    [link id='123']my link text[/link]
    and
    [link id='123']<img src="pic.jpg"/>[/link]

    Thanks for making this plugin.

    http://wordpress.org/extend/plugins/internal-link-shortcode/

  2. wlanni
    Member
    Posted 3 years ago #

    I would like this as well.

  3. jfache
    Member
    Posted 3 years ago #

    According to the plugin's code, it can handle the "[link id='123']<img src="pic.jpg"/>[/link]" formatting, but the content is HTML escaped by the plugin's code as well, so the <img> tag doesn't render.

    I wonder why.

  4. FaceLord
    Member
    Posted 3 years ago #

    It appears WordPress 3.1 has internal linking support built in. So I guess this plugin is no longer necessary.

  5. jfache
    Member
    Posted 3 years ago #

    As a matter of fact the plugin is still necessary. The internal linking support of WP 3.1 is just a way of browsing through your articles, it links posts via their possibly changing permalinks. This plugin links posts via their static IDs.

  6. rlgrobert
    Member
    Posted 3 years ago #

    +1 for supporting the [link id='X']My link text[/link] syntax.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic