WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Query Multiple Taxonomies doesnt show custom taxonomies

[Resolved] Query Multiple Taxonomies doesnt show custom taxonomies

  • Hi!

    The Query Multiple Taxonomies widget only shows default taxonomies (Categories and Tags), none of my custom taxonomies are shown in the list ๐Ÿ™

    Any help would be appreciated.

    Best regards!

Viewing 15 replies - 1 through 15 (of 20 total)
  • You’re using a plugin to define your taxonomies, right? Which one?

    Yes, I’m using More Taxonomies, is that a problem?

    Yes, it is, since More Taxonomies sets the ‘public’ attribute to false.

    You’re better off using register_taxonomy() directly.

    I have the same problem. Is there a way to modify this attribute somewhere (in the DB with PHPMyAdmin?)

    I have only one custom taxonomy, but it contains many terms, and I really like the functionalities of More Taxonomies to manage them.

    Are you sure that is the problem?

    I just had a look at the code and saw that:

    $default = array(
    		'hierarchical' => true,
    		'public' => true,
    		'show_ui' => true,
    (...)

    scribu: Is your plugin compatible with any other Taxonomies plugin?

    By the way… I agree with mnaugendre, public is set to true in the More Taxonomies plugin.

    similar problem here:

    this plugin shows custom taxonomies created with the “Simple Taxonomies” plugin http://wordpress.org/extend/plugins/simple-taxonomies/
    but not those created with the “GD Custom Posts And Taxonomies Tools” plugin http://wordpress.org/extend/plugins/gd-taxonomies-tools/

    although the first plugin offers no options when creating the taxonomies while the second one lets me specify all sorts of attributes and I chose public…

    Are you sure that is the problem?

    I just had a look at the code and saw that:

    $default = array(
    ‘hierarchical’ => true,
    ‘public’ => true,
    ‘show_ui’ => true,
    (…)

    Yes, I’m sure:

    1. Registered a taxonomy ‘test’
    2. Enabled ‘Allow permalinks’, ‘Show UI’ and ‘Allow queries’ (notice there’s no ‘Public’ setting)
    3. Added this code to my functions.php file:

    function test_tax() {
    	var_dump( get_taxonomy('test')->public );
    }
    add_action('init', 'test_tax');

    And got this result:

    string(0) ""

    which is equivalent to False.

    @ovidiu: The “GD Custom Posts And Taxonomies Tools” plugin sets public to ‘yes’ instead of True, but that’s good enough. The development version of QMT (1.3.1-alpha) accomodates this.

    I have only one custom taxonomy, but it contains many terms, and I really like the functionalities of More Taxonomies to manage them.

    The term management functionalities come from WordPress, not More Taxonomies.

    I have only one custom taxonomy, but it contains many terms, and I really like the functionalities of More Taxonomies to manage them.

    The term management functionalities come from WordPress, not More Taxonomies.

    I’m not sure we’re speaking about the same thing: as soon as I deactivate the More Taxonomies plugin, my custom taxonomy doesn’t appear in the article edit screen any longer; there is no way I can assign terms to the article I’m editing, nor create new terms from this screen.

    When I reactivate the plugin, everything re-appear; thus I guess that’s More Taxonomies that bring all this.

    @ovidiu: The “GD Custom Posts And Taxonomies Tools” plugin sets public to ‘yes’ instead of True, but that’s good enough. The development version of QMT (1.3.1-alpha) accommodates this.

    true, works fine.

    BUT you gave the wrong link ๐Ÿ™‚

    When I reactivate the plugin, everything re-appear; thus I guess that’s More Taxonomies that bring all this.

    It just registers the taxonomy, but then WordPress is the one that creates the boxes and the menus.

    All that More Taxonomies does ultimately is call register_taxonomy() with the settings you choose.

    Yes, it’s more convenient to have a settings page in the admin to register taxonomies, but the plugin has to work properly. ๐Ÿ˜›

    BUT you gave the wrong link ๐Ÿ™‚

    Can somebody provide the right link, please ๐Ÿ™‚

    All that More Taxonomies does ultimately is call register_taxonomy() with the settings you choose.

    Thanks for the clarification, I understand your point, now.

    However, I tried other plugins:
    – GD Custom Posts … doesn’t do better, custom taxonomies don’t appear in the drill-down widget; may be your development version solves the problem?
    – Simple Taxonomies is not an option as it doesn’t do hierarchical taxonomies, and has not been updated for more than a year
    – Custom Taxonomies doesn’t work wit WP 3.0.1

    … what’s left?

    How to download the development version:

    1. Go to the Extend page: http://wordpress.org/extend/plugins/query-multiple-taxonomies/

    2. Click on “Other Versions ยป”

    3. Click on “Development Version”

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘[Resolved] Query Multiple Taxonomies doesnt show custom taxonomies’ is closed to new replies.
Skip to toolbar