Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter typeomedia

    (@typeomedia)

    The fix works for me with 3.0 and I have parallel installations. 3.0 for future developments and 2.9.1 for production purposes.

    I have put some of the new functions into the codex. Might be interesting for WATS as well as some things are easier than before with the new post_type features.

    The post count could be a problem. Maybe you need to use separate categories or catch the update_term_count in WP 3.0 with a filter.

    Oh, and I like WATS a lot, it is simple and stable and helps keeping up with issues.

    Thread Starter typeomedia

    (@typeomedia)

    OK, the problem is in wats-template.php

    With version 3.0 some things regarding taxonomies and object types have changend.
    You can use the new 3.0 function “register_taxonomy_for_object_type” or, for compatibility reasons, set the taxonomy for the ‘ticket’ object type manually like this:

    function wats_register_taxonomy()
    {
    	global $wp_taxonomies;
    	$wp_taxonomies['category']->object_type[] = 'ticket';
    	$wp_taxonomies['post_tag']->object_type[] = 'ticket';
    }

    Works for me – partly – the tags box doesn’t show.
    For 3.0 you should register the ‘ticket’ object type with register_post_type().

    By the way, in your current version I see that you have added the post_tags to the ‘post’ object type:

    register_taxonomy( 'post_tag', 'post',
    array('hierarchical' => false,
    'update_count_callback' => 'wats_update_ticket_term_count',
    'label' => __('Post Tags'),
    'query_var' => false,
    'rewrite' => false) ) ;

    Shouldn’t it be like this?

    register_taxonomy( 'post_tag', 'ticket',
    array('hierarchical' => false,
    'update_count_callback' => 'wats_update_ticket_term_count',
    'label' => __('Post Tags'),
    'query_var' => false,
    'rewrite' => false) ) ;

    Thread Starter typeomedia

    (@typeomedia)

    2.9.1 is perfectly OK. I’ll try to fix it with 3.0 and share it then.

    Thread Starter typeomedia

    (@typeomedia)

    The login works now, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)