• Resolved timothyharter

    (@timothyharter)


    I was using this syntax to place the drill down widget in the body of my wordpress page

    <?php
    the_widget(‘Taxonomy_Drill_Down_Widget’, array(
    ‘title’ => ‘Industry’,
    ‘taxonomy’ => ‘stat-industry’
    ));
    ?>

    This worked great in 1.1.1 of the plugin, but in 1.2.3 and above, I get a message that says “No taxonomies selected!” where the list of terms should be. I am sure it must be some simple change, but I cannot figure it out.

    And thanks Scribu for all your hard work!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author scribu

    (@scribu)

    That should still work in 1.2.3.

    In the development version however, a single widget handles multiple taxonomies now:

    the_widget('Taxonomy_Drill_Down_Widget', array(
    	'title' => 'Industry',
    	'taxonomies' => array( 'stat-industry' ),
    ));
    Thread Starter timothyharter

    (@timothyharter)

    That indeed fixed it :}

    FYI, the old way doesn’t work in 1.2.3, at least not for me, I just tried it again to make sure, but they new way works in both the 1.2.3 and the 1.3alpha release.

    Thanks again!!

    Hey there Scribu~

    Okay, so, I’m going forward with trying to implement the new version of QMT, and the first issue I’m running into is that I have rewrites in place for custom archive pages for my custom post types.

    Previously, I was using this method in my functions file to take care of the $base/now $base_url:

    function my_qmt_base_url($base) {
    	$ptype = get_post_type_object(QMT_Core::get_post_type());
    	$plural = sanitize_title_with_dashes($ptype->label);
    
    	return get_bloginfo('url') . '/' . $plural;
    }
    
    add_filter('qmt_base_url', 'my_qmt_base_url');

    This method creates a fatal error now as it no longer exists, and I’m wondering how I should go about inserting my base_url now?

    I need for the filtering functions of each drill_down to maintain their seclusion from the other custom post types. In other words, if I’m drilling down results in workshops, I need to stay in workshops.

    Help?

    Alright, playing around a bit more trying to work this out, and it seems that primarily I just need to get my post_type query var back.

    I see that query->set for post_type is set to “any”, so that’s creating post titles that all now say “any” instead of their respective post types.

    I’m trying to get pretty much the same functionality I have now with the old version and the extra functions. Can you tell me if I should just stick with the old version, or try to get my query var working again, and implement this new one?

    Here’s the functionality I’d like to have:

    Currently my clicks on an individual taxonomy term go to taxonomy.php, and I have it styled differently to make it more obvious that the user is no longer sequestered within a specific post type. However, I love that when you click the term directly from the drill_down_widget now it does maintain the post type seclusion and goes to multitax. Problem is, it also does this from anywhere else, so there is never that differently styled list. It would be perfect to be able to keep the functionality of going to multitax if coming from the drill_down_widget, but, have it so that if an individual taxonomy term is clicked outside of the drill down widget it goes where intended … to taxonomy.php.

    The add/remove filters to still direct to multitax, or even better, to the respective custom post type archives from whence they came before being clicked.

    And of course, I still need to have the no results direct back to that custom post type archive via $base_url.

    What do you think?

    Plugin Author scribu

    (@scribu)

    It would be really helpful if you could give me a clearer outline of what you want the outcome to be:

    URL1 -> taxonomy.php (post_type = X)
    URL2 -> multitax.php (post_type = Y)

    etc.

    Plugin Author scribu

    (@scribu)

    See my reply in [Plugin: Query Multiple Taxonomies] customize reset.

    PS: It would be nice if, next time, you would post in the appropriate thread or open your own.

    So sorry Scribu. Still getting used to using forums believe it or not. Will post appropriately~

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Query Multiple Taxonomies] 1.2.3 and above drilldown widget’ is closed to new replies.