Forums

Media Tags
Clash with WordTube? (4 posts)

  1. YorkshireLad
    Member
    Posted 9 months ago #

    Hi,

    Finally getting around to using Media Tags 3.0 to do something useful for site visitors, not just for me when looking for an image but I've hit an odd problem, which makes no sense to me.

    I add the following shortcode to a post:
    [media-tags media_tags="my-tags" media_types="jpeg"]

    It doesn't matter what I put in place of 'my-tags', all that comes up is the most recent WordTube video. If I deactivate WordTube, I get my images (sized medium by default) fine, but with WordTube activated it doesn;t work as it should.

    Using the latest versions of WordPress, Media Tags and WordTube (according to the Plugins screen).

    Any ideas, anyone?
    Gary

  2. pmenard
    Member
    Posted 9 months ago #

    Just downloaded and install wordTube on my local development system. Which is also running the latest version of WordPress and Media-Tags.

    From the wordTube plugin code I can see where it registers a shortcode 'media' lib/shortcodes.php line 28.

    And from my Media-Tags plugin I register the shortcode 'media-tags'.

    It appears WordPress does not distinguish between 'media' and 'media-tags' in the way it handles the short code processing.

  3. YorkshireLad
    Member
    Posted 9 months ago #

    How odd. I would never have thought of that. More than a little worrying, too - what happens if I prefix all the shortcodes that I create with 'gary-' to distinguish them from others?

    Thanks for the reply, Paul. I think dropping wordTube will be the easiest way forward for me; having rediscovered Media Tags I'd be reluctant to let it go instead.

    Gary

  4. pmenard
    Member
    Posted 9 months ago #

    Seems this is a known/reported issue.
    http://core.trac.wordpress.org/ticket/17657

    I'm considering updating my plugin's short code from using 'media-tags' to just 'media tags'.

Reply

You must log in to post.

About this Plugin

About this Topic