Support » Plugins and Hacks » Custom taxonomies and slugs

  • Hi!

    I’m trying to register a taxonomy using the following args:

    $args = array(
    ‘labels’ => array(‘name’ => ‘Brands’, ‘singular_name’ => ‘Brand’),
    ‘public’ => true,
    ‘hierarchical’ => true,
    ‘show_ui’ => true,
    ‘show_in_nav_menus’ => true,
    ‘rewrite’ => array( ‘slug’ => ‘cameras/brands’, ‘with_front’ => false ),
    ‘query_var’ => true
    );
    register_taxonomy( ‘brand’, ‘camera’, $args );

    But when I visit the following url I get a 404 Not Found error:

    http://www.domain.com/cameras/brands/nikon

    Any help in fixing the issue would be appreciated

    Best,

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom taxonomies and slugs’ is closed to new replies.