• Resolved bhasic

    (@bhasic)


    I’m using Media Library Assistant to insert tags to my media files and your plugin for search. In search results tags show, but clicking any goes to an empty page site.net/attachment_tag/the_tag/ Is it possible to make it work so that clicking a tag would display media files that have that tag?

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

    (@1fixdotio)

    Hey,

    Can you email a few screenshots or screen recording to show this issue? yoren [at] 1fix.io is it. Thanks!

    Thread Starter bhasic

    (@bhasic)

    Got it working. Found this and based on it got it working with

    add_action('parse_query', 'hijack_query');
    function hijack_query() {
        global $wp_query;
        if (is_tax() OR is_category()) {
            $wp_query->query_vars['post_type'] =  array( 'attachment', 'page', 'post' );
            $wp_query->query_vars['post_status'] =  array( null );
            return $wp_query;
        }
    }
    Plugin Author Yoren Chang

    (@1fixdotio)

    Thanks for sharing the solution!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Media tags’ is closed to new replies.