Viewing 7 replies - 1 through 7 (of 7 total)
  • ronbme,
    Thanks for pointing this out. I needed to add a new file for 3.0 support and it was checked in my svn client. Should be there in a few minutes.
    -Mike

    Thread Starter ronbme

    (@ronbme)

    Thanks, Mike.

    I reinstalled the plugin. It worked for “category” and the taxonomies of one of my custom post types.

    I have one custom post type and taxonomies I created myself and several others created with another plugin. It worked on some of them but not on others.

    I also have one taxonomy defined for two different post types. One is “post” and the other is a custom post type. It wouldn’t display for either of those.

    Ron

    Ron,

    This is very strange indeed as I am using the plugin on my own site to create an index of terms from 3 custom taxonomies, 1 of which spans 3 different post types and everything seems to be working fine for me. Here’s a link: https://wordpress.mfields.org/index/

    If you look at Each heading is the name of a custom taxonomy and “Topic” can be applied to “Posts”, “Pages” as well as custom post type “Resource”. The count is displaying correctly and the link is working. All post types and taxonomies were created by php in functions.php

    I would be interested to know which plugin you are using to create you taxonomies.

    Another question that I have is “Are there terms in the taxonomy?”. If you have created a Taxonomy but have not yet added any terms to it, this plugin will not display anything for the taxonomy.

    Best wishes
    -Mike

    Thread Starter ronbme

    (@ronbme)

    Mike,

    I am using the Custom Post Type UI plugin. I also just added the GD Custom Posts and Taxonomies Tools. The other plugin I am using is just one I created myself to create a custom post type of “Movies” with several different taxonomies. (This was for testing all the changes being developed for WordPress 3.0.)

    The results were that none of the taxes from my plugin worked with your plugin, although they work for everything else.

    The taxes created with the Custom Post Type UI plugin worked, even though it has not been updated to work with the WP 3.0 changes.

    The Custom Posts and Taxonomies Tools plugin has been updated to work with WordPress 3.0 and the taxes I created with it do not work with your plugin either.

    I haven’t had a chance to explore your code but I wonder if the problem might be with “is_taxonomy”. It would seem that the plugin is recognizing some taxes but not others. And why would it ignore taxes updated to work with WP 3.0 and work with ones not updated?

    To answer your question, yes, I made sure there were terms in the taxonomies I checked.

    You mentioned that all post types and taxonomies were created in functions.php. All the ones I am mentioned were created with plugins.

    The one which works the best is the “movies” plugin I created, but that’s because I kept changing it to be compliant with every nightly build.

    If “is_taxonomy” is failing somewhere along the line, that is a serious bug and worth checking out.

    Ron

    Thread Starter ronbme

    (@ronbme)

    Mike,

    I went to your web site, (which is very good by the way), and checked out some of your other plugins.

    I downloaded and installed the Taxonomy Terms List plugin.

    It worked with every taxonomy I have. The correct terms and taxes were displayed after every post. (The site I tested on is updated with the latest trunk version. WordPress 3.0-RCI-15022.)

    Maybe there is a clue in there which will help.

    Ron

    Ron,
    If you would like to email me your plugin file or paste the code to pastebin, I would be happy to take a look at what might be going wrong for you. The plugin was developed on 3.0-beta2-14960 but I do not believe that the version would be a problem, because it works smoothly on 2.9.2.

    is_taxonomy is a rather simple function that looks a bit like this:

    function is_taxonomy( $taxonomy ) {
    	global $wp_taxonomies;
    	return isset($wp_taxonomies[$taxonomy]);
    }

    The only way that it would return false is if your custom taxonomy does not exist in the global array $wp_taxonomies.

    Which leads me to wonder if there is a problem with the code you used to create your taxonomies. Here is how I hook into wordpress to create my taxonomies and post types via functions.php. I don’t know if this is the ‘proper’ way to do things, but I have experienced success with it.

    add_action( ‘init’, ‘mfields_create_custom_post_types’, 0 );
    add_action( ‘init’, ‘mfields_create_taxonomies’, 1 );

    I hook into the “init” action and register the post types, before I register the taxonomies for them.

    Hope this helps,
    -Mike

    Thread Starter ronbme

    (@ronbme)

    Thanks Mike.

    I’m going to go over my code this weekend and see I can locate the problem.

    Ron

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Taxonomy List Shortcode] You left out a needed file’ is closed to new replies.