How to determ a custom post type url?
You need to register a custom taxonomy for you custom post type. For example: add_action(‘init’, ‘register_book_taxonomy’); function register_book_taxonomy() { $labels = array( ‘name’ => ‘Book Categories’, ‘singular_name’ => ‘Book Category’, ‘search_items’ => ‘Search Book Categories’, ‘all_items’ => ‘All Book Categories’, ‘parent_item’ => ‘Parent Book Category’, ‘parent_item_colon’ => ‘Parent Book Category:’, ‘edit_item’ => ‘Edit Book Category’, … Read more