Taxonomy Picker Plugin for WordPress
Ranked #540 in Computers & Electronics, #9,384 overall
Allow Readers to Build Queries from Your Custom Taxonomies
Taxonomy Picker is a widget which you can include in your sidebar to help visitors build complex queries using categories and your custom taxomies. Full details are listed below.
For example on my site I use it to allow users to:
The example image shown is from a live implementation at Egyptological Online which you can use as a demo site to try it out in practice. In this site, I only show the plugin on certain pages - the example shown here is from the main Find page.
For example on my site I use it to allow users to:
- Find all posts containing the word Egypt within the Books category
- Find all posts within the Magazine category which match "Valley of the Kings" in my "Where?" custom taxonomy which also include the word Tutankhamun
The example image shown is from a live implementation at Egyptological Online which you can use as a demo site to try it out in practice. In this site, I only show the plugin on certain pages - the example shown here is from the main Find page.
Custom Taxonomies Shown
Configuration of your widget
The title of the widget is free text - just enter whatevet text of HTML you wish shown. The title you enter will be displayed within tags of class "widget-title". As of v1.8, you can also hide the text search box if you don't want it.
The widget itself can be configured to show or hide category and each custom category. Just tick the items you wish to show in the widget. The picture shows the top of the configuration panel for the widget in the WordPress admin dashboard. All your custom taxonomies will be shown in the list and available for you to pick but any can be hidden from your visitors.
As of v1.8 you can set a value for any taxonomy which will be the inital value for the widget. If the taxonomy isn't shown in the widget the value will still be passed and will be fixed so it becomes a fixed part of the final query with the reader only chosing from other taxonomies. If you scroll the section to the right, you can also set the sort order for the terms displayed for that taxonomy
Category Restrictions
Equally, I usually have a categeory of test posts which I wish to exclude. To do this use the "Excl" option and enter the IDs of the categories you do not want to be shown as a comma seprated list of IDs.
Pages are selected in a similar way but the idea is different: this controls where the widget is shown. If you want it to shown everywhere select All but you can also enter a list of page IDs to restrict display to certain pages. I use this to show different configurations of the widget on different parts of my site. If you need more than this you should consider using a plugin like Widget Logic.
Filter Hooks
I have started adding hooks, mostly by special request. I will probably move the documentation for these and the styling elsewhere sometime soon as this page is getting too big, but for now there is just one filter
tpicker-search-text
Use to set the text of the label for the search text. It should only be needed if you don't want it to the same as the text on the Search button (e.g. if you want to set that as Submit in the admin panel), or to override translation. It is applied immediately before application. Example:
add_filter('tpicker-search-text', 'my_tpicker_search_text');
function my_tpicker_search_text( $text ) {
return 'Keyword Search Text';
}
tpicker-search-text
Use to set the text of the label for the search text. It should only be needed if you don't want it to the same as the text on the Search button (e.g. if you want to set that as Submit in the admin panel), or to override translation. It is applied immediately before application. Example:
add_filter('tpicker-search-text', 'my_tpicker_search_text');
function my_tpicker_search_text( $text ) {
return 'Keyword Search Text';
}
Important!
Taxonomy Picker Highlights
Allow your readers to use dropdowns to build a custom query from your WordPress custom taxonomies
Taxonomy Picker Admin Screen
v1.5 admin screen

You will find the Taxonomy Picker admin screen in the new Kandie Girls section at or towards the bottom of the admin menu.
Pre-pack Taxonomies
If you are used to coding then you will now how to add your own custom taxonomies. The plugin will work with any you add.
As of v1.8, if you don't code then there is an option in the Admin to turn on an additional admin screen on which you can enable custom taxonomies just by ticking boxes. When saved, these will be available across your site. Hierarchical ones work like Categories; flat ones like Tags. Select the type you want.
Of course the exact name you want might not be avaialble in the pre-pack list. Chose the closest alternative and add a label of your own, which is what the user will see. For instance, I used the "writer" custom taxonomy for Photographer on one of my sites.
The admin screen for this section is very ugly at present. I will tidy it up but I wanted to get the functionality released and worry about prettfying it later.
As of v1.8, if you don't code then there is an option in the Admin to turn on an additional admin screen on which you can enable custom taxonomies just by ticking boxes. When saved, these will be available across your site. Hierarchical ones work like Categories; flat ones like Tags. Select the type you want.
Of course the exact name you want might not be avaialble in the pre-pack list. Chose the closest alternative and add a label of your own, which is what the user will see. For instance, I used the "writer" custom taxonomy for Photographer on one of my sites.
The admin screen for this section is very ugly at present. I will tidy it up but I wanted to get the functionality released and worry about prettfying it later.
Version History
Version 1.10.1
Add tree view and a beta widget
Version 1.9.3
Add classes to items in term list. Top items have the class 'parent'; other items 'child'.
Version 1.9.2
Add filter 'tpicker-search-text' (see above)
Version 1.9
Fix post count bug. Add stylesheet.- but I haven't had chance to get everything into the stylesheet or do documentation yet - v1.9 was released early.
I have reworked the search text to add support for accents and rework the use of spaces. There may be further enhancements I can make to improve the basic text search - I will investigate over the next few days.
Version 1.8
A major update with several additional widget options incuding the ability to hide the search box. The order of taxonomies in the widget on the front site has been changed and is now alphabetical by label (rather than slug). In the widget you can now select the sort order of the terms for each taxonomy. You can chose between label (name) and slug, or even count, and whether ascending or descending.
The bigger change is that you can now set a value for each taxonomy. If the taxonomy is displayed it will be used as the initial value. If the taxonomy is not displayed it will be transparently passed through to the final WP query and restrict the final search. It means it is now possible to restrict your widget to search entirely within a value in another taxonomy.
Version 1.7.3
Admin screen now has override text for the Search button and for the ** All ** text to aid internationalisation. The bug with two words in the search text has been fixed, along with a number of other bugs.
Version 1.5.2
The plugin now comes with an options screen in Admin which allows you to define:
1) Whether the query is remembered - if you select this option then the combox boxes will populate with the query which has just been run (so long as the widget is displayed on the results page, e.g. is in a sidebar throughout your site).
2) The text used for ** All **. This includes using the taxonomy names as an options so if your taxonomies are Size and Color then you could have All Sizes and All Colors instead of the ** All ** used by the first version.
3) Whether to show the count alongside items. This isn't recommended (yet) for very large sites as I am not caching the query. That will come in v1.6 It works just fine and should be sufficient unless you have hundreds of posts and many entries in your taxonomies. So v1.5 good for hobby sites but if you are running an online shop you might prefer to wait for v1.6 for performance reasons - try it and see.
4) There was a problem that when ** All ** was selected everywhere that it depended to display a 404 Not Found on some sites. You can now specify the URL to use "URL if no selection" to use when ** All ** is selected for all options. Pick whatever best suits your site.
NB I had problems with the upload to the WordPress repository which skipped some new files. I have pushed out minor releases to catch them. Sorry if you have been affected. If you have v1.5.2 and still have problems, please delete the plugin and re-install from the Respository.
Version 1.3
Multiple bug fixes
Version 1.3
Fixes multiple keywords in the search and accented characters
Version 1.1*
Verson 1.01 was incompatible with WP3.1. This has been fixed in version 1.1 which adds no extra functionality. That will be for the next spot release over the next week or so.
Version 1.01 - not stable with WP 3.1
Fixed a PHP warning.
Added code to make all displayed text in the widget translable
Add tree view and a beta widget
Version 1.9.3
Add classes to items in term list. Top items have the class 'parent'; other items 'child'.
Version 1.9.2
Add filter 'tpicker-search-text' (see above)
Version 1.9
Fix post count bug. Add stylesheet.- but I haven't had chance to get everything into the stylesheet or do documentation yet - v1.9 was released early.
I have reworked the search text to add support for accents and rework the use of spaces. There may be further enhancements I can make to improve the basic text search - I will investigate over the next few days.
Version 1.8
A major update with several additional widget options incuding the ability to hide the search box. The order of taxonomies in the widget on the front site has been changed and is now alphabetical by label (rather than slug). In the widget you can now select the sort order of the terms for each taxonomy. You can chose between label (name) and slug, or even count, and whether ascending or descending.
The bigger change is that you can now set a value for each taxonomy. If the taxonomy is displayed it will be used as the initial value. If the taxonomy is not displayed it will be transparently passed through to the final WP query and restrict the final search. It means it is now possible to restrict your widget to search entirely within a value in another taxonomy.
Version 1.7.3
Admin screen now has override text for the Search button and for the ** All ** text to aid internationalisation. The bug with two words in the search text has been fixed, along with a number of other bugs.
Version 1.5.2
The plugin now comes with an options screen in Admin which allows you to define:
1) Whether the query is remembered - if you select this option then the combox boxes will populate with the query which has just been run (so long as the widget is displayed on the results page, e.g. is in a sidebar throughout your site).
2) The text used for ** All **. This includes using the taxonomy names as an options so if your taxonomies are Size and Color then you could have All Sizes and All Colors instead of the ** All ** used by the first version.
3) Whether to show the count alongside items. This isn't recommended (yet) for very large sites as I am not caching the query. That will come in v1.6 It works just fine and should be sufficient unless you have hundreds of posts and many entries in your taxonomies. So v1.5 good for hobby sites but if you are running an online shop you might prefer to wait for v1.6 for performance reasons - try it and see.
4) There was a problem that when ** All ** was selected everywhere that it depended to display a 404 Not Found on some sites. You can now specify the URL to use "URL if no selection" to use when ** All ** is selected for all options. Pick whatever best suits your site.
NB I had problems with the upload to the WordPress repository which skipped some new files. I have pushed out minor releases to catch them. Sorry if you have been affected. If you have v1.5.2 and still have problems, please delete the plugin and re-install from the Respository.
Version 1.3
Multiple bug fixes
Version 1.3
Fixes multiple keywords in the search and accented characters
Version 1.1*
Verson 1.01 was incompatible with WP3.1. This has been fixed in version 1.1 which adds no extra functionality. That will be for the next spot release over the next week or so.
Version 1.01 - not stable with WP 3.1
Fixed a PHP warning.
Added code to make all displayed text in the widget translable
Trees and Drill Down
(A toe in the water)
Updated 22nd August 2011
v1.10.1 adds an option to sort items into a tree view. It's not available yet for categories. I need to find a way of getting the indentation right.
It also adds a beta widget which can be turned on in the admin panel. This will remain as beta until v2.0 so that people can continue to use the fully debugged version will new code is tested and debugged. (It is a full re-write as a class, so an API will be coming too.)
This adds another sort option - Pruned Trees. Again these need the indentation sorting but it is a step in the direction of drill down. It requires hierarchical custom taxonomies (it is not yet available for categories - I will fix that soon) and suppresses items in the tree which are not presently needed so that drill down is now possible at last. Ideally it could do with some jQuery.
I am not saying this is the only way that drill down will be presented. There are a number of options and I am stil unsure which is best for my own site lat alone generally so I may add further alternatives.
I think the new widget is working but there are so many combinations of options it has not been possible to test them all. Please shout if you find a problem. The area which I know has not yet been tested is including and excluding particular categories. I am tempted to re-work that entirely and add the same functionality for all taxonomies - not sure yet.
v1.10.1 adds an option to sort items into a tree view. It's not available yet for categories. I need to find a way of getting the indentation right.
It also adds a beta widget which can be turned on in the admin panel. This will remain as beta until v2.0 so that people can continue to use the fully debugged version will new code is tested and debugged. (It is a full re-write as a class, so an API will be coming too.)
This adds another sort option - Pruned Trees. Again these need the indentation sorting but it is a step in the direction of drill down. It requires hierarchical custom taxonomies (it is not yet available for categories - I will fix that soon) and suppresses items in the tree which are not presently needed so that drill down is now possible at last. Ideally it could do with some jQuery.
I am not saying this is the only way that drill down will be presented. There are a number of options and I am stil unsure which is best for my own site lat alone generally so I may add further alternatives.
I think the new widget is working but there are so many combinations of options it has not been possible to test them all. Please shout if you find a problem. The area which I know has not yet been tested is including and excluding particular categories. I am tempted to re-work that entirely and add the same functionality for all taxonomies - not sure yet.
Feedback and Support
Please do not contact me by email with any queries. Any support questions or requests for enhancement should please be included below. (No HTML is allowed and will be removed.) You don't need to be a member of Squidoo to leave a comment.
submit
-
Reply
-
mark shirley
Feb 21, 2012 @ 8:54 am | delete
- Sorry one more question - I seem to have a taxonomy that will not work "Gross value" it told me that i couldnt edit it in wp. Is there a way to delete all history of a taxonomy and start again.
-
-
Reply
-
Kate-Phizackerley
Feb 22, 2012 @ 3:02 pm | delete
- What I would do is manually remove it from any posts which use it then just comment out the line of code which declares the custom taxonomy and replace it with a new one with a new slug. But that is WordPress support and you might be better asking at wordpress.org
-
-
Reply
-
mark shirley
Feb 21, 2012 @ 7:41 am | delete
- Hi Im looking for a easy way to control the order taxonomy appear I thought I should put a number in the slug eg 1 to 10, but im sure there must be a smarter way.
-
-
Reply
-
Kate-Phizackerley
Feb 22, 2012 @ 3:05 pm | delete
- That is far and away the easiest approach
-
-
Reply
-
Robin
Feb 20, 2012 @ 9:09 pm | delete
- hi
is there an option where i can re arrange the search in ascending order and i tried to find the line of code where i can change how the labels r displayed but i couldnt find exact way to change the sorting ?
-
-
Reply
-
Kate-Phizackerley
Feb 22, 2012 @ 3:04 pm | delete
- That is such a sensible suggestion that I will add it to the plugin over the next couple of weeks as an option in the widget itself. If you need sooner, you would use a filter to add the relevant additions to the URL which is built.
-
-
Reply
-
Kate-Phizackerley
Feb 20, 2012 @ 8:38 pm | delete
- I have been very busy but my time has freed up. I've a magazine edition to get out in the next 10 days but then I should have some time to work on a new version of the plugin. My priority is to swap over to the beta code. That has radio buttons as an option now which I will tidy up, but I want to add a tree view as well. (I have it working but performance is utterly awful so I need to find a better algorithm before I release a tree view.)
-
-
Reply
-
Kseniya
Feb 20, 2012 @ 7:44 pm | delete
- Hi Kate!
Thanks for your plugin! It is great.
Is it possible to change the font size and color for **All** (and other taxonomies)?
I was trying to invistigate the code(with firebug), but it didn`t help.
Many thanks again for this plugin.
-
-
Reply
-
Kate-Phizackerley
Feb 20, 2012 @ 8:20 pm | delete
- I can't get :firstchild to work but this sort of syntax works instead:
#taxonomy-picker select option {color:red;background:silver;}
#taxonomy-picker select option ~ option {color:blue;background:black;}
Obviously change as needed
-
-
Reply
-
Kseniya
Feb 21, 2012 @ 9:06 am | delete
- Thanks fot the quick reply!
-
-
Reply
-
Kseniya
Feb 21, 2012 @ 9:07 am | delete
- Thanks fot the quick reply!
-
-
Reply
-
George
Feb 20, 2012 @ 6:05 am | delete
- Hi Kate
Congratulations for a very useful plugin that I was looking for quite a time now...
I got only one problem I've been trying to track it down with no luck. Probably I'm doing something wrong because on your site (Egyptological Online) it seems to work perfect.
When all filters are set to "All Items" it goes to the error page. In any case I need to pick at least on value on any filter, in order to bring results.
Beside my little problem I got a suggestion to make, that I believe it would be useful to lots of users. What about if the visitor could pick multiple values from a filter (more than one choices)
Thanks again
George
-
-
Reply
-
Kate-Phizackerley
Feb 20, 2012 @ 8:26 pm | delete
- Within the dashboard options for Taxonomy Picker you will see there is an option for the URL you wish to use if "*ALL"" has been selected for everything. Just point that to where you need it to go.
There are various enhancements I could make. I need to be certain I am happy with the beta code and make that the recommended code instead. Then I can start adding enhancements.
There is a problem though with multi-select. So far as I am aware WP supports this in the URL for ategory but not for custom taxonomies. In order to hande multi-select I would have to add a query handler. That isn't something I have ruled out, but at present I rely on WP and the theme to handle the query as that is more predictable. It's something that is on the list of things to consider but it if it happens it will be longer term rather than short term because of the other things which have to be in place before I could add multi-select.
-
-
Reply
-
George
Feb 21, 2012 @ 10:54 am | delete
- Gotcha!
One more quick one. Is there any chance of me choosing the result order?
Thanks a million
G
-
-
Reply
-
Kate-Phizackerley
Feb 23, 2012 @ 2:39 pm | delete
- As I replied to somebody else, I will add that to the code over the next couple of weeks, although possibly only in the beta code.
-
-
Reply
-
Anselmus
Feb 19, 2012 @ 4:55 am | delete
- Hi Kate, wonderful plugin you got here.
I was wondering though, can you have the plugin/widget to filter only posts from a certain post type? I have one custom post type where I would need filtering, but not in others, so the resulting URL would be something like "http://myurl.com/mjy-custom-post-type/?taxonomy1=something&taxonomy2=something".
Cheers!
-
-
Reply
-
Kate-Phizackerley
Feb 20, 2012 @ 8:34 pm | delete
- I don't have a site with custom post types to test. I added a post-type option some time ago. You will need to enable it in the Taxonomy Picker Dashboard admin. It will then be available in your widget. If that doesn't work I can look at tweaking it because it is self-contained code which is easy to upgrade and something other people want / have asked for.
The alternative if you always want a particular post type is to add it in to the URL the plugin builds using the tpicker-built-uri filter. That is quick and easy. The filter has just one argument, text, the string built as the URL and is called immediately before re-direction to the URL so just return the URL you want in your filter function and you should have what you need.
-
-
Reply
-
chris
Feb 17, 2012 @ 9:42 am | delete
- Hi Kate
Can you help me I am trying to get the plugin to appear horizontally rather than vertically. How ever when I do this with my theme css the search button appears slightly higher in some browsers and lower in others. Is there a reason for this?
-
-
Reply
-
Kate-Phizackerley
Feb 20, 2012 @ 8:04 pm | delete
- Hi, if you post up your site I will see if I can quickly spot what is wrong in your CSS
-
-
Reply
-
Chris
Feb 21, 2012 @ 4:17 am | delete
- Hi Kate
Here is the css I have used and the link to the site.
.taxonomy-picker ul {
list-style: none;
margin: 0;
}
.taxonomy-picker li {
float: left;
padding: 0 20px 0 0;
}
.taxonomy-picker li label {
float: left;
padding: 0px 4px 0 0;
margin:0px 0 0 0;
}
.taxonomy-picker p {
float: left;
padding: 0px 4px 0px 30px;
margin:0px 0 90px 0;
text-align: left;
display: block;
}
.taxonomy-picker select {
}
#sidebar-art .tpicker_search_text {width:90%;
float: left;
padding: 0px 0 20px 0;
margin:0px 0 0 0;
}
http://fundingforartists.org.uk/artists/
It all looks great on my mac but on a pc (firefox and IE) the search button seems to move down out of line
-
-
Reply
-
Chris
Feb 23, 2012 @ 1:24 pm | delete
- Hi Kate
I have amended the css to this. Can you spot any problems that would be causing the alignment problem.
Many thanks
#taxonomy-picker {
width: 860px;
padding: 1px 40px 34px 0px;
margin: 1px 0 1px 0;
font-family: "Arial", Helvetica, sans-serif;
font-size: 0.9em;
}
#sidebar-art .taxonomy-picker ul {
list-style: none;
}
#sidebar-art .taxonomy-picker li {
float: left;
padding: 0px 20px 0 0;
}
#sidebar-art .taxonomy-picker li label {
padding: 3px 4px 0 0;
}
#sidebar-art .taxonomy-picker p {
float: left;
}
.taxonomy-picker select {
}
#sidebar-art .tpicker_search_text {width:90%;
}
-
-
Reply
-
Kate-Phizackerley
Feb 23, 2012 @ 2:38 pm | delete
- I can't see an aligngment problem on a PC and I have looked in Firefox, Chrome and IE. Sorry
-
-
Reply
-
Robin
Feb 16, 2012 @ 6:07 pm | delete
- Hi a quick question, can i format the search to let user control to view it in ascending or descending order i want to show the search as highest priced or lowest priced
can you point me to file or line on the code where i can do it ?
-
-
Reply
-
Kate-Phizackerley
Feb 20, 2012 @ 8:05 pm | delete
- It wouldn't be in the code as it need to be change in browser - so that means it would take separate Javascript
-
-
Reply
-
Kate-Phizackerley
Feb 20, 2012 @ 8:05 pm | delete
- It wouldn't be in the code as it need to be change in browser - so that means it would take separate Javascript
-
-
Reply
-
Andy
Feb 13, 2012 @ 1:10 pm | delete
- Hi Kate. I'll echo all the praise for this plugin - great job. I have hit one snag: despite checking the option to include custome post types it does not seem to be picking up my custom post types when I run the search. Do I need to do something specific. I used Dev4Press's Custom Post and Taxonomy plugin to set up the custom post, if that makes any difference?
Thanks! Andy
-
-
Reply
-
Kate-Phizackerley
Feb 13, 2012 @ 2:32 pm | delete
- Is it building the correct URL?
-
-
Reply
-
Robin
Feb 12, 2012 @ 9:04 pm | delete
- hi, Amazing plugin, i have few issues, i tried reading all the comments but couldnt find the answers
1: How can i re order the labels to be displayed ?
2: Most Important: How can i restrict it to search the pages.? ( i dont have the content of the pages to be visible in its search )
Thanks
-
-
Reply
-
Kate-Phizackerley
Feb 13, 2012 @ 2:34 pm | delete
- 1. You would use a filter. If you wish to go down that route I can post up details
2. It is designed to search posts. If you wish to search pages (?? not sure if that is what you want) then it should be possible using another filter but I haven't tested it.
Get back with what you want.
-
-
Reply
-
Robin
Feb 13, 2012 @ 3:58 pm | delete
- Hi sorry i think i was fully clear
I only want the post and custom post types to be searched and not the pages and please let me know what filter to use to re order how the labels are displayed
Thanks for your help
-
-
Reply
-
Kate-Phizackerley
Feb 13, 2012 @ 4:57 pm | delete
- The filter for taxonomy (i.e. label) order is tpicker_taxonomies which has an argument an array of taxonomies - just re-order as needed.
Sorry I wasn't sure whether you wanted to search pages or exclude them. There are two ways to exclude them.
1) They don't show if a taxonomy is selected. Depening on site design that may be easy. If you look at my site at http://www.egyptological.com/find and search on "taxonomy" you will see it builds a URL of http://www.egyptological.com/?s=taxonomy&cat=66,10,7,74,48,62,57 which returns just a one post. If you manually then shorten the URL to http://www.egyptological.com/?s=taxonomy you will see it then searches pages as well. So you may be able to do as I do and specify a list of categories.
2) If that doesn't work you need a filter. Again if you try manually entering a URL on my site and try http://www.egyptological.com/?s=taxonomy&post_type=post you will see you are back to just posts and not pages. (There are two posts because there is a post in a minor category.) To do this on your site you would use the tpicker-built-uri filter which has a string argument. Providing you are not "remembering" your search, just add &post_type=post to the end and return it.
-
-
Reply
-
Robin
Feb 13, 2012 @ 4:59 pm | delete
- Thanks for the quick response
-
-
Reply
-
Robin
Feb 12, 2012 @ 9:04 pm | delete
- hi, Amazing plugin, i have few issues, i tried reading all the comments but couldnt find the answers
1: How can i re order the labels to be displayed ?
2: Most Important: How can i restrict it to search the pages.? ( i dont have the content of the pages to be visible in its search )
Thanks
-
-
Reply
-
ruru
Feb 8, 2012 @ 4:35 am | delete
- Hello everyone,
I first want to say that this plugin looks great, I've been looking for that for a while. However I am not lucky, it seems it doesn't work on my site, when I activated it I got the message: " The plugin generated 287 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin."
I still wanted to go on and then I got:
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/interjus/public_html/wp-content/plugins/taxonomy-picker/taxonomy-picker.php on line 62
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/interjus/public_html/wp-content/plugins/taxonomy-picker/taxonomy-picker.php on line 42
and finally it blocked my website :-(
is there anything I can do to have chance to use it, I really need this tool!
thanks
-
-
Reply
-
Kate-Phizackerley
Feb 13, 2012 @ 2:31 pm | delete
- Hi
Sorry you are having problems.
For some reason your system is turning on the plugin's debug mode. Why is a mystery - it happens on a tiny handful of systems. We suspect that some other plugins may somehow activate debugging mode but I have no idea how.
You should not be getting any error messages from the plugin even with debugging on. I think the second is only happening because the plugin didn't activate properly. It can be cleared by saving options within the admin but I have also changed the code and hope that it is now more robust and won't give an error even fi plugin activation failed to complete. The first is redundant code and has been removed.
The other errors are almost certainly coming from other plugins and from core. If debugging is turned on, somehow, I cannot do much about that.
Debugging should only get turned on if the constant KANDIE_THEME_DIR has been defined. You could try editing kandie-foundation.php in the KANDIE-LIBRARY folder to make it:
function kandie_debug_status() {
return;
}
Likewise:
function kandie_backtrace( $stream = 'echo', $drop = 0) {
if( !defined( KANDIE_THEME_DIR ) ) return; // Ensure it doesn't run onlive systems
require_once( 'kandie-debug.php' ); // Load up the debug functions
$styles = "";
$dropped = false;
if( $stream == 'mixed' ) $stream = kandie_debug_status();
if( $stream != 'echo' and $stream != 'log' ) $stream = 'echo'; // Default to echo
$backtrace = debug_backtrace();
while($drop):
array_shift($backtrace);
$drop--;
$dropped = true;
endwhile;
if($dropped):
$trace = reset($backtrace);
$fn_args = "Args: $styles" . implode(" ,", $trace) . " ";
endif;
if( $stream == 'echo' ):
echo $fn_args;
echo "";
array_walk( $backtrace, "kandie_echo_backtrace" ); // Output the backtrace
echo " <";
else:
array_walk( $backtrace, "kandie_log_backtrace" ); // Log the backtrace
endif;
}
Could become
function kandie_backtrace( $stream = 'echo', $drop = 0) {
return;
}
That cuts out the code which cause the extra output. I'm too busy to do so for the next month or so but I will look at whether I can re-architecture it so that the problem code doesn't need to ship with the production version.
Kate
PS I tried to email you but it bounced
-
-
Reply
-
ruru
Feb 8, 2012 @ 4:33 am | delete
- Hello everyone,
I first want to say that this plugin looks great, I've been looking for that for a while. However I am not lucky, it seems it doesn't work on my site, when I activated it I got the message: " The plugin generated 287 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin."
I still wanted to go on and then I got:
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/interjus/public_html/wp-content/plugins/taxonomy-picker/taxonomy-picker.php on line 62
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/interjus/public_html/wp-content/plugins/taxonomy-picker/taxonomy-picker.php on line 42
and finally it blocked my website :-(
is there anything I can do to have chance to use it, I really need this tool!
thanks
-
-
Reply
-
ruru
Feb 8, 2012 @ 4:33 am | delete
- Hello everyone,
I first want to say that this plugin looks great, I've been looking for that for a while. However I am not lucky, it seems it doesn't work on my site, when I activated it I got the message: " The plugin generated 287 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin."
I still wanted to go on and then I got:
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/interjus/public_html/wp-content/plugins/taxonomy-picker/taxonomy-picker.php on line 62
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/interjus/public_html/wp-content/plugins/taxonomy-picker/taxonomy-picker.php on line 42
and finally it blocked my website :-(
is there anything I can do to have chance to use it, I really need this tool!
thanks
-
-
Reply
-
Chris
Feb 3, 2012 @ 10:46 am | delete
- Hi Kate
Amazing plugin! I have been looking for something like this for a while. I have a couple of questions.
1. I am using two categories which I have set up custom templates for each and then separate sidebar widgets how do control where the results are shown as at the moment I am loosing the widget bar when it shows the results.
2. I want to exclude certain categories but can't find where the categories ID is.
Sorry if these are stupid questions.
Thanks
Chris
-
-
Reply
-
Chris
Feb 3, 2012 @ 2:18 pm | delete
- Another stupid question!
Do I need to enable the reset button? As it is not appearing on my site.
-
-
Reply
-
Chris
Feb 3, 2012 @ 2:18 pm | delete
- Another stupid question!
Do I need to enable the reset button? As it is not appearing on my site.
-
-
Reply
-
Richard
Jan 25, 2012 @ 6:54 am | delete
- Hi,
Excellent plugin, I have changed the options to use All {name} and it is working well. Can you please advise how I can remove each label? Because of the option I have chose I now get the label twice.
Thanks
RIchard
-
-
Reply
-
Alastair
Jan 17, 2012 @ 6:51 am | delete
- Hi, great plugin, and just what I was looking for. It scores over every other solution I've found, with some very intelligent programming.
However, I've run into a few minor hiccups, detailed below:
1. markup of the combobox is invalid - hidden fields appear inside but are not inside and not wrapped in block level elements, throwing w3c validator errors
2. unexpected output errors on activation
3. several wp-debug errors on front end and back end
4. the order of output of taxonomies is hardcoded to be alphanumeric - it would be useful if this could be switchable to the order in which the taxonomies were registered (for my own purposes I commented out the sorting)
5. "remember" is a great touch, but produces long, not-nice urls. In some of my testing, these have been a paragraph long, so I have this disabled for now.
Great work, thank you, and living forward to further developments with interest.
-
-
Reply
-
Kate-Phizackerley
Jan 18, 2012 @ 6:38 pm | delete
- Hi Alistair
1. I will take a look at the validation issue. That will be easy to fix.
2 - 3. I thought I had fixed those. It's some problem between the plugin and something else which is causing the problems. It's a rare issue which affects only a minoroty of users. I will take another look.
4. There is a filter to change the order. In the longer term I'd like drag and drop ordering but that is a bigger time commitment than I can accommodate right now
5. I can fix the long URL problem (not usually a big problem but can be with some taxonomies) in the medium term - I'll add the option of using a transient in the database.
-
-
Reply
-
Kate-Phizackerley
Jan 18, 2012 @ 6:38 pm | delete
- Hi Alistair
1. I will take a look at the validation issue. That will be easy to fix.
2 - 3. I thought I had fixed those. It's some problem between the plugin and something else which is causing the problems. It's a rare issue which affects only a minoroty of users. I will take another look.
4. There is a filter to change the order. In the longer term I'd like drag and drop ordering but that is a bigger time commitment than I can accommodate right now
5. I can fix the long URL problem (not usually a big problem but can be with some taxonomies) in the medium term - I'll add the option of using a transient in the database.
-
-
Reply
-
Alastair
Jan 17, 2012 @ 6:51 am | delete
- Hi, great plugin, and just what I was looking for. It scores over every other solution I've found, with some very intelligent programming.
However, I've run into a few minor hiccups, detailed below:
1. markup of the combobox is invalid - hidden fields appear inside but are not inside and not wrapped in block level elements, throwing w3c validator errors
2. unexpected output errors on activation
3. several wp-debug errors on front end and back end
4. the order of output of taxonomies is hardcoded to be alphanumeric - it would be useful if this could be switchable to the order in which the taxonomies were registered (for my own purposes I commented out the sorting)
5. "remember" is a great touch, but produces long, not-nice urls. In some of my testing, these have been a paragraph long, so I have this disabled for now.
Great work, thank you, and living forward to further developments with interest.
-
-
Reply
-
Wan
Jan 4, 2012 @ 10:51 am | delete
- Hi Kate,
I am trying to use this widget multiple times, but different combo of taxonomies. For example, I want to do a massive review site, if for hotel review, I will like to have the combo of taxonomies "hotel type, location, cities, price" and if I am doing for food review, I will like to have the combo of taxonomies be in "cusine, food places, location, price". Somehow, I realise once I create the combo for hotel review, it keep replicate the widget from the hotel review combo, even though I have click different taxonomy in new widget. As I am using headway theme, adding multiple widgets is not a problem. What I need is different widget combo of taxonomies. Is that possible? kindly advice.
-
-
Reply
-
Kate-Phizackerley
Jan 4, 2012 @ 1:32 pm | delete
- There are a couple of similar questions so I will answer this one.
You should be fine. Somebody else was using it that way in combination with Widget Logic to control which plugin was displayed. I haven't tried adding multiple copies which BOTH / ALL display at the same time. Does it work or not?
-
-
Reply
-
Kate-Phizackerley
Jan 4, 2012 @ 1:32 pm | delete
- There are a couple of similar questions so I will answer this one.
You should be fine. Somebody else was using it that way in combination with Widget Logic to control which plugin was displayed. I haven't tried adding multiple copies which BOTH / ALL display at the same time. Does it work or not?
-
-
Reply
-
wan
Jan 5, 2012 @ 4:07 am | delete
- Hi Kate,
I tried with widget logic, it is not working as well. What I did is using "is_page(hotel review page id)" to restrict the appearance of my hotel review taxonomy combo, then using is_page(food_review page id) for another combo, but the hotel review combo still appear. It does not work for me. Now I really have a real problem. Any way to fix this?
-
-
Reply
-
Kate-Phizackerley
Jan 5, 2012 @ 8:30 pm | delete
- If you want it to appear on specific pages only the plugin supports that natively. I don't see why multiple copes of the plugin doesn't work.
There is an alternative. There is a filter which is called after the taxonomy list has been sorted. Its tpicker_taxonomies The argument is an array of the taxonomies. What you could try is using only one copy of the widget and set it to appear on all relevant pages. Then in the filter use is_page() to deleted unwanted taxonomies from the list of taxonomies. Just be careful because I think the list of taxonomies is after all string processing so I'd suggest you do a var_dump() the first time to get the format. I know, I know, I need to write up proper documentation.
For what you want to do that is probably a neater and more maintainable approach anyway. I'm pushing really tight deadlines but shout if you hit problems.
-
- Load More
About Kate Phizackerley
Intrudcing the author of your WordPress plugin
If you have any extra information or questions about this lens you can contact Kate Phizackerley, the lensmistress, using the contact form I have provided.
You can also follow Kate's business blog Kate Phizackerley on Business on Twitter or subscribe to an RSS newsfeed of her recent Squidoo updates.
Kate has written many Squidoo lenses. Please visit her full lensography, sample Kate's top lenses, or read her Squidoo Diary to keep up to date with her recent publications.
And if you would like to know more about Kate then please visit her personal lens on Squidoo or Kate's main personal hub and web site. You may also enjoy her personal blogs News From the Valley of the Kings or PT Phiz; or perhaps visit her Flickr photostream.Version 2.1
Design Credits
My thank yous
And finally, I'd like to thank a few developers whose icons I feature on my lenses: Dry Icons for the Portfolio icon; Gopal Raju for the Twitter Bird; Icons-Land for Sweet Angel; Maja Benic for the Contact & Home icons.
I will receive commission if you buy any Amazon, eBay AllPostsers products etc which I have featured or from Theban Moon, my Zazzle store. I have presented information in good faith but you are reminded to check information before making any purchase.
I will receive commission if you buy any Amazon, eBay AllPostsers products etc which I have featured or from Theban Moon, my Zazzle store. I have presented information in good faith but you are reminded to check information before making any purchase.
by Kate-Phizackerley
Kate-Phizackerley
Off Squidoo I am a middle-aged woman with a wide range of interests from Ancient Egypt, backgammon, cookery ... to ... Zimbabwe which I visited 20 years... more »
- 167 featured lenses
- Winner of 14 trophies!
- Top lens » Disney Princess Birthday Cakes
Feeling creative?
Create a Lens!
Explore related pages
- Best Wordpress Plugins Best Wordpress Plugins
- Should You Tweet Your Blog? Should You Tweet Your Blog?
- Wordpress Arcade Wordpress Arcade
- WPAssociate Review - Do NOT Buy WPAssociate Until You Read This Review! WPAssociate Review - Do NOT Buy WPAssociate Until You Read This Review!
- Wordpress Email Subscription Plugin Wordpress Email Subscription Plugin
- Plugin Hotshot Review Plugin Hotshot Review

