WordPress.org

Ready to get started?Download WordPress

Forums

Custom taxonomies and slugs (2 posts)

  1. leemon
    Member
    Posted 2 years ago #

    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,

  2. leemon
    Member
    Posted 2 years ago #

    I forgot to say that I already updated the permalinks structure going to Options>Permalinks

    [ Please do not bump, it's not permitted here. ]

Topic Closed

This topic has been closed to new replies.

About this Topic