Support » Themes and Templates » splitting multiple tag results by author in tag.php

  • I’m using Query Multiple Taxonomies plugin on a site I’m developing for some friends. It works great when I use my standard tag.php sheet, however, the whole idea of the blog is that everything is split by the two authors into two columns – so author A’s posts appear in the left column and author B is in the right column.

    So… when I use single_tag_title() in the following query it means that the query multiple taxonomies plugin doesn’t work properly

    <?php $current_tag = single_tag_title ("", false);
    query_posts(array(
    'author_name'=>'Jenny',
    'tag_slug__and'=>array($current_tag),
    ) );
    
    while ( have_posts() ) : the_post() ?>

    This is the only way I can think of to separate the tag results down into the author columns. But what then happens with the the Query Multiple Taxonomies plugin is the ‘add-term’ ‘remove-term’ aspect gets broken so that you can only add terms and then clear them, rather than dynamically adding and removing terms from the list – which is really how this needs to work!!!

    I’m stuck on this one and would REALLY appreciate if someone has the answer as I want to give the site to my friends asap.

    You can see the development page here

    I’ve tried to find anything other than the single_tag_title() to use instead, but I’m stumped!

  • The topic ‘splitting multiple tag results by author in tag.php’ is closed to new replies.