Thread Starter
dkey94
(@dkey94)
I’ve been working with this for almost 2 days. WordPress was reinstalled twice. I was looking for add_filter() methods. Also changed the theme twice. Removed all plugins. And… the solution was super easy.
A have a custom taxonomy for my warehouses.
register_taxonomy(‘warehouses’, array(‘warehouse’), array(
‘hierarchical’ => true,
‘labels’ => $labels,
‘show_ui’ => true,
‘show_admin_column’ => true,
‘query_var’ => true,
‘rewrite’ => array(‘slug’ => ‘warehouse’),
));
Slug exactly the same as my custom post type.
Thank you a lot!
Thread Starter
dkey94
(@dkey94)
This is strange. Not only WP can’t see single-warehouse.php but also single.php. WP use index.php always when trying to display a warehouse.
File permissions look fine – all 775. All files are in theme root folder. The theme was bought somewhere 2 years ago. This is my friends site.
//edit
I’ve forgotten about flush_rewrite_rules(). THANKS!
-
This reply was modified 9 years, 2 months ago by dkey94.
-
This reply was modified 9 years, 2 months ago by dkey94.