scribu,
Excellent work! I did find one bug though, since I needed to use the qmt_post_type filter I found the widget isn't using the filter.
Here's the diff...
@@ -28,7 +28,8 @@
$out = '';
$taxonomies = array();
- foreach ( get_object_taxonomies('post') as $taxonomy ) {
+ $post_type = apply_filters('qmt_post_type', 'post');
+ foreach ( get_object_taxonomies($post_type) as $taxonomy ) {
$tax = get_taxonomy($taxonomy);
if ( ! empty($tax->label) )
One more question, I have multiple taxonomies for this post_type and multiple widgets for each taxonomy. The problem I'm running into is creating the multiple tax query, since a selection from a different tax ( or widget ) would result in the string breaking/starting-over.
Thanks.
Could you provide an example? Also see this topic:
Recognize Custom Taxonomies registered only to Custom Post Types
Thanks for the diff, but it is already fixed in the development version (1.2-alpha5).
Here's my example:
I have multiple taxonomies for one custom post type
I have setup multiple widgets, one per custom post type
I can filter from each widget but the urls are not chaining like they should(?)
For example,
The below url structure is never created, instead ad-type=facebook replaces ad-location =post.
http://wpmds.local/?ad-location=post&ad-type=facebook
The expectation would be for the ad-type=facebook to be appended at the end.
Here's a video explaining the issue: http://cl.ly/17Qz
Cheers!
Scribu,
It looks like your development version fixes the issue I described above. Excellent work!
Now I just need to figure out why I can't load the plugin directly in my theme, instead of a plugin.
Why would you want to do that?
I have a habit of bundling all the essential plugins ( that are lightweight ) into the clients theme so it's easier on them and I don't have to worry about conflicts later. I also use SVN::externals with my theme framework so I can use these plugins in future themes easily and allow for future upgrades.
FYI: I figured out why it wasn't working and adjusted how it loads.
Cheers!