• hi I am trying to make a taxonomy archive page.

    I am using ‘taxonomy.php’

    and the below is the code I wrote to add taxonomy

    register_taxonomy('clients','post', array(
    'hierarchical' => true,
    'labels' => array(
    'name' => _x( 'Clients', 'taxonomy general name' ),
    'singular_name' => _x( 'Client', 'taxonomy singular name' ),
    'search_items' => __( 'Search Clients' ),
    'all_items' => __( 'All Clients' ),
    'parent_item' => __( 'Parent Client' ),
    'parent_item_colon' => __( 'Parent Client:' ),
    'edit_item' => __( 'Edit Client' ),
    'update_item' => __( 'Update Client' ),
    'add_new_item' => __( 'Add New Client' ),
    'new_item_name' => __( 'New Client Name' ),
    'menu_name' => __( 'Clients' ),
    ),
    'show_in_nav_menus' => true,
    'show_ui' => true,
    'query_var' => 'clients',
    'rewrite' => array( 'slug' => 'clients', 'with_front' => false,'hierarchical' => true),
    ));

    But the funny thing is that it works on my localhost site.

    I just moved to the server with the same setting and it automatically redirects to a single post of one of the post in the taxonomy

    Any advice would be great

    cheers

  • The topic ‘Taxonomy archive page not working ( forced to single page)’ is closed to new replies.