You should use wordpress’s built in menu manager for this, along with a specific template file for listing the custom post types (for instance template-literature.php).
Related Posts:
- Remove current_page_parent nav class from blog index when in CPT
- Highlighting current item of custom post types’ sub pages, listed by wp_list_pages
- Why are navigation items saved in the database?
- adding .current* tags to custom post types and taxonomies
- Hierarchical Custom Posts – Highlighting Current Post in Sub-Menu
- Add/Remove current_page_parent class
- wordpress wp_list_pages help
- Custom Post Types in the WordPress Navigation Menu
- How can i automatically add CPT single pages as sub menu items
- Manually adding current_page_parent to wp_list_pages()
- build child and anchestor three from post parent
- How to create a Child & Siblings menu for a custom post type?
- Navigation not working for custom post type pages
- wp_nav_menu doesn’t seem to work on custom post type pages
- Custom nav menu current item custom link problem
- Calling the first & last post by category in custom post type
- Navigation won’t update to show full path to single post
- Adding a Custom Post Type into the menu screen
- Highlighting wp_nav_menu() Ancestor Class w/o Children in Nav Structure?
- WordPress Custom Post Types with a page as a parent?
- Now can I group custom post types together?
- How to order adjacent posts (prev / next) by custom field value?
- How to model a hierarchy for courses, levels and lessons?
- How can I get my Custom Post Types to appear in nav-menus.php ‘Menu’?
- wp_list_pages not showing cpt as I expected
- automatically placing custom post types singles into submenu of main nav menu
- Renaming Menu Item within Admin Menu Section for a Custom Post Type?
- Problem excluding category from get_next_post
- How to Programically add to the new WordPress menus
- Nav menu of all posts in a custom post type
- Full-Ajax Theme: parseJSON error while building a JSON object from a WordPress custom template
- Dropdown list of a custom post type
- Highlight nav menu terms
- Which User Role for Custom Post Type Menu – wp_nav
- Custom Taxonomy Breadcrumb Navigation
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- Custom Post Type Name Causing Problem
- Editor access to menu: custom post type missing
- Settings page above CPT page in admin section
- Remove current_page_parent from posts page link in WordPress nav menu
- Menu highlight custom post type archive
- Showing Custom Content in a Nav Dropdown
- ‘Pages’ widget alternative for custom post types?
- Add the current menu item CSS class to a custom page type archive in WordPress menu
- How to change the admin menu “Pages” to something else
- Menu Multiple Taxonomies
- Navigation menus not showing because of custom post type filter
- wp_list_pages(); Change output of hyperlink
- How to have custom menu Item CSS Classes for wp_page_menu() or wp_list_pages()
- Custom Post Type Navigation on Custom Field
- Set menu active state for custom posttype and category, given custom taxonomy term
- How can i change the output of posts_nav_link();
- Highlight another nav item
- Function to display custom post type on front page makes menu items dissapear
- Correct classes for WordPress menu items
- Creating a navigation menu of all posts of a custom post type and their children posts?
- How to make this menu drop down or like accordion
- Custom Post Types don’t highlight in menu nav
- Using default WP menu functionality to link to custom post-type listing?
- How to display custom WP menus?
- Is there a way to establish parent/child relationship in WP menu links exclusively?
- A page that shows a list of a specific custom post type
- Single custom post type’s menu ancestor/parent is Posts archive page
- menu link to custom post_type?
- Custom Post Type & Custom Menu Walker to append custom class for active post types
- Including link to custom post type in ‘wp_list_pages’ function
- How does the ‘the_post_navigation()’ work for CPT’s?
- WordPress menu with custom taxonomy
- List All Custom Post Types Posts in Nav Menu Dynamically
- wp_list_pages Hierarchical Help
- Custom Posttype and menu classes
- Getting subpage of subpage – Custom posts
- highlight parent page menu item when in custom post type
- Custom post type post in custom menu
- Home page is getting current-menu-item even if it’s not home
- Previous / Next Links For Custom Post Type Sorted By Meta_Value
- Include “Scheduled” (“Future”) Posts in WordPress Post Navigation ( previous_post_link, next_post_link ) for a Specific Custom Post Type
- Menu for taxonomies and posts belongs to taxonomy
- wp_get_nav_menu_items doesn’t return custom post type item
- Automatically add CPT UI categories to the menu
- Insert a hash into the url of custom posts to make them function as anchors
- Possition a Custom Post Type Tab under Settings
- how to display notifications in the wordpress menu when a new post is published
- Menu disappears with custom post type link
- How to display custom post type in a submenu?
- List all posts from custom post type by taxonomy
- Nav style for current page with custom post type
- Admin menu post type
- How to display the FAQ Archive page in my menu
- how to override menu widget?
- No Current Class showing in Menu for Custom Post Types
- Custom post type in submenu with custom meta box as a title with custom html
- Getting (Invalid) when adding custom taxonomy of custom post type link in menu [closed]
- Display a custom post type list by taxonomy term
- Custom post type navigation – 404 on page 2
- Show posts of parent in edit.php
- Second tier sidebar navigation
- Highlight specific menu item when custom post is page
- sidebar hierarchical menu category & custom post type
- Pagination for Custom Post Type with Multiple Types