I was just navigating through that code and was able to solve it myself. If you look at the 5th line from the start I have called the wp_pagenavi() function which requires a plugin named WP-pagenavi. After installing and setting it up, I got the desired results. Thanks anyways 🙂
Related Posts:
- Remove current_page_parent nav class from blog index when in CPT
- Why are navigation items saved in the database?
- adding .current* tags to custom post types and taxonomies
- Add/Remove current_page_parent class
- Custom Post Types in the WordPress Navigation Menu
- How can i automatically add CPT single pages as sub menu items
- How to create a Child & Siblings menu for a custom post type?
- 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
- current_page_item and custom post type?
- Navigation won’t update to show full path to single post
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- Adding a menu item for a Custom Post Archive
- Adding an Archive of Posts to the Navigation Menu in WordPress 3.0
- Adding custom post type archives to a WordPress menu
- How to add custom post type archive page links to nav menu?
- Query menu_order custom post types
- How to add meta box to backend menu page
- Custom Post Type Menus
- How make get_next_post() return first post when viewing last one
- Highlighting current item of custom post types’ sub pages, listed by wp_list_pages
- Extend walker class with custom post types [closed]
- Hide custom post type from nav menu manager
- specify meta_key / meta_value condition for prev_post_link and next_post_link
- Menu with Automatic Pages Included from Custom Post Type
- posts_nav_link on single post template
- Custom Post Type .current-menu-item not applying on Custom Post Type Archive Page
- Highlight parent menu item when child post
- wordpress custom post type remove duplicate menu item
- Adding Custom Taxonomy Archive Link to Nav Menu Shows Up As (Invalid)
- How to get custom post type menu_name?
- wp_get_nav_menu_items wp-admin/customize.php problem
- How do I create an archive page for standard posts?
- current-menu-item class for custom post type parent
- how to get post slug from url in wordpress
- Fake mark a menu item as current_page_item/active in WordPress
- Twenty Fifteen: Adjacent posts by menu_order [duplicate]
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- Update menu when saving settings
- custom post type not showing in menu
- Custom Taxonomy Navigation, with current menu items for children?
- Display posts from Custom Post Type in category page on front-end
- Use menus with anchors
- Custom Post Type Nav to Subpage
- Querying both pages and posts
- Showing up my custom post type in primary navigation
- Second Set of Eyes: One custom taxonomy shows in Appearance > Menus, one does not
- page menu entry for custom post type
- How To Show All Custom Post Types In A Category Instead Of Pagination?
- Use custom walker to add taxonomy terms to main nav menu
- Losing Nav Active State in Menu
- Review site custom post type structure
- Ordering Submenu Pages in WP 3.1
- How can I use archive-{post_type}.php theme template?
- Custom Post Type Link added to menu won’t show in frontend
- How To Display A List Of CPT Posts In A Meta Box On Menus Page?
- Get custom post type categories to show up in menus
- How can I create an automatic drop down menu with my tags?
- show current item in custom menu, when inside a custom post type
- Prevent custom post type from showing up in custom menus
- Custom Post Type – Portfolio no longer works
- How to programmatically add elements in a custom menu
- New posts label category with “new”
- Custom post type posts wont show in wp_nav_menu()
- Can’t Get Parent and Child Categories of Custom Taxonomy to Display
- Placing Admin Post Metaboxes in Tabs
- How to get next post link of child custom post type from parent post and get next post link of parent post from the last child post?
- How can I put content before my custom post type default pages?
- Manually adding current_page_parent to wp_list_pages()
- build child and anchestor three from post parent
- Prev/Next Navigation on Single Post Disappeared for Custom Post Type
- wordpress get menu id by custom post_type?
- cpt not display inside nav menu
- current-post-parent for custom post type
- Custom post type category link + add to menu
- Adding a nav menu for a custom post type
- Post navigation doesn’t show (in custom template, custom post type, custom query)
- Menu disappears with custom post type link
- Use the page picker from wordpress menu creation page
- How to display custom post type in a submenu?
- current_menu_parent for custom post type and custom url
- add current-menu-item to multiple custom post types
- Nav style for current page with custom post type
- Admin menu post type
- How to display the FAQ Archive page in my menu
- Custom Taxonomy Showing in WP Menu
- Programmatically Split A Post Into Multiple Pages
- Plugins for putting Custom Post Types into the Menu
- 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
- CPT Archive with parent page
- next_posts_link returns same content of 1st page
- Setting a Master Menu on a Custom Post Type
- and custom post_types to custom menu
- Why is Posts page selected when showing single Custom Post Type?
- Navigation links to posts in current term shortcode
- How to make a single Menu Item call another Mega Menu for Custom Post Types and Custom Taxonomies?
- Menu Structure and URL structure, with Pages and Post-Type-Posts
- get_the_post_navigation not working