WordPress.org

Ready to get started?Download WordPress

Forums

Media Tags
[resolved] Retrieve media-tag from url (2 posts)

  1. codecks
    Member
    Posted 1 year ago #

    Hello.

    How can I retrieve the media-tag from the url?

    Example: http://www.mydomain.com/media-tags/gallery01/

    I want to get the 'gallery01' part from that url so I can use it with the get_attachments_by_media_tags() function in a template file to display the related pictures to that media-tag.

    http://wordpress.org/extend/plugins/media-tags/

  2. codecks
    Member
    Posted 1 year ago #

    it seems the function get_mediatags() will do the trick.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic