• Hi,

    I’m using this great plugin and I created plugin which lets me create posts on a custom edit page (it’s because there’s a lot of other things going on like google maps etc). I’d like to use the taxonomy term selector (which is great BTW ?? on mentioned page, but I can’t make it run.

    I’m not sure what exacly is needed to insert and make it work on my own page. I tried:

    wp_enqueue_script('post');
      require_once('./includes/meta-boxes.php');
    
      // here I'd like to display a city selector from the UTM plugin
      post_tags_meta_box($post, array('args' => array('taxonomy' => 'city')));

    It produces some HTML code which look like the box, but no Javascript is binded to it. Can anyone advise?

    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,
    Is your custom edit page a custom post type, If it is than you may use the function
    register_taxonomy_for_object_type('city', 'post_type');

    Let me know if it’s fixed.

    -Xydac

    Thread Starter ianian

    (@ianian)

    Hi,

    thanks for answering. Unfortunately, it didn’t work. Just to make it clear, I want to use it on a normal plugin page (not ‘edit post’ or ‘edit custom post’ from WP). So I just register a callback in the menu and call the code I presented in the first post. do_meta_boxes() renders the proper HTML, but the JS doesn’t bind events to it.

    I can’t find any tutorial or documentation on using the mentioned box in plugins or when the events are binded.

    Do you know what do I have to do to get the select taxonomy term working on a custom plugin page, if I have a loaded $post (just like in post.php from WP)?

    thanks!
    ian

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Ultimate Taxonomy Manager]’ is closed to new replies.