WordPress.org

Ready to get started?Download WordPress

Forums

Media Grid
[resolved] Possible to filter by media tags? (7 posts)

  1. Paulio51
    Member
    Posted 8 months ago #

    First off, finally a plugin that is trying to make the media library atleast tolerable. Thank you for that!

    I have my media organized by tags and was wondering if you could implement a means by which we could filter the media library when viewing in media grid?

    Paul

    http://wordpress.org/plugins/media-grid/

  2. shaunandrews
    Member
    Plugin Author

    Posted 8 months ago #

    How are you tagging media items? As far as I'm aware that is not functionality that WordPress offers out of the box.

    The Media Grid plugin, at one time, actually offered the ability to add and sort/filter items by tag, but the code was too buggy and has since been removed.

  3. Paulio51
    Member
    Posted 8 months ago #

    Sorry for the late reply, I was out of town.

    I am using Media Tags plugin by Paul Menard. It adds a new drop down box next to the 'Show all dates' drop down in Media List view. My hope was that Media Grid could use these drop-downs to filter what images were shown.

    Paul

  4. Picturgency
    Member
    Posted 7 months ago #

    Hi, I'm also wondering if I can improve the plugin to work with Enhanced Media Library plugin wich is very practical to filter media.
    This pluging add filter drop-down menu.
    This plugin add checkboxes to the media file and they don't appear in the grid view item, it would be great!

    Also, I don't see any tools like in your screenshot of the plugin, to erase and modify pics.

  5. Picturgency
    Member
    Posted 7 months ago #

  6. Paulio51
    Member
    Posted 6 months ago #

    Shaun
    I was able to figure out a way to enable filter by tags through your search box. Below is the code for both Media Tags plugin and for Enhanced Media Library. Take a look and see what you think as it would be nice to use this functionality.
    And not sure what the future of this plugin is but I would love to offer my help. I noticed you asked for that in another post so hopefully you are still looking.

    For Media Tags plugin I placed the following code under your "media-meta" class at about line 290 of wp-media-grid.php (right before Uploaded By)

    <?php
    $media_tag_infos = get_the_terms( $item->ID, MEDIA_TAGS_TAXONOMY );
    if($media_tag_infos && !is_wp_error( $media_tag_infos )){
    ?>
         <dt>Media Tag</dt>
         <dd><?php
         foreach($media_tag_infos as $media_tag_info){
    	echo ($media_tag_info->name);
         }
         ?>
         </dd>
    <?php
    }
    ?>

    For Enhanced Media Library place the following code at roughly line 290 of wp_media_grid.php before the Uploaded By entry.

    <php?
    $media_tag_infos = get_the_terms( $item->ID, post_tag );
    if($media_tag_infos && !is_wp_error( $media_tag_infos )){
    ?>
    	<dt>Media Tag</dt>
    	<dd><?php
    	foreach($media_tag_infos_2 as $media_tag_info_2){
    		echo ($media_tag_info_2->name);
    	}
            ?>
            </dd>
    <?php
    }
    ?>
  7. shaunandrews
    Member
    Plugin Author

    Posted 2 months ago #

    As part of the WordPress Core "Plugins as Features" project, we're actively working on improving the Media Grid plugin. Our hope is to having something ready for inclusion in the next release of WordPress.

    Tagging isn't likely to be a high priority for our initial coding sprints. When we nail the basics, some sort of grouping of media items is something we want to do.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.