Ok, I found the solution in terms of getting the links to appear, however, I needed to remove the ‘true’ argument for only moving between posts in the same category/taxonomy.
Is that right that you can’t restrict the posts linked to so that they’re only the ones within the same taxonomy? Here’s the correct code and as vancoder says, it needs to appear within the loop (I placed this just before endwhile;):
<div class="next-posts"><?php next_post_link('%link', 'Newer entry >') ?></div>
<div class="prev-posts"><?php previous_post_link('%link', '< Older entry') ?></div>
As this is a custom post type with a custom taxonomy, I assume the pagination is breaking because WordPress is looking for a ‘category’ as if these were normal posts? Is there any way to make this work so that only Work posts within my custom taxonomy are returned?
Related Posts:
- Pagination not working with custom loop
- WP_Query Pagination on single-custom.php
- Have different number of posts on first page
- Custom post type pagination 404 fix?
- wp_pagenavi() with custom wp_query()?
- Pagination with custom post type not working
- Custom post type archive 404’s with paginate_links
- Number of pages – multiple (custom) post types
- Multiple Paginations on one Page
- Custom permalink with pagination
- Newer/Older posts links display same posts on every page
- Custom wp_query pagination – next_posts_link() or wp_pagenavi() always empty
- Pagination with custom loop
- Group list of posts by taxonomy and allow for pagination
- Custom post type archive with pagination?
- Pagination on a custom page template
- Pagination problems with multiple custom post type archive pages
- Display “Post 2 of 4” on single post page?
- posts_nav_link on single post template
- Pagination problem in custom post type used as front page
- Custom Taxonomy archive returns 404
- WP_Query pagination using only numbers instead of /page/1 on URL
- Pagination with custom post types results in 404 issues
- Custom query form submission pagination
- Paginated Taxonomy Term Archive including one post per term
- Pagination links not showing on custom post type admin list
- Pagination on Custom Post Type: 404 Error
- Pagination in a Shortcode. Get_next_posts_link not working but get_previous_posts_link works fine right next to it
- How to load custom post archives sub-pages with ajax?
- pagination redirecting from page number url before page requested
- Pagination on category page with custom post types
- Archive template for custom post type only lists first 10
- CPT: if more than X images are in post, use pagination
- Pagination is not working in custom post type
- Custom post type not displaying all entries
- Custom post type (with parent-child relationship) singular page with pagination
- How do I move/order posts with a tag to the end?
- Add Pagination on Custom Post Type Archive
- Woocommerce search pagination not working
- How To Show All Custom Post Types In A Category Instead Of Pagination?
- Custom Post Type Pagination Paginates Only in URL Structure
- Is it possible to to use custom post type types on a page with the same slug somehow?
- WordPress custom post query with pagination
- can these 3 queries be re-written as 1 query?
- Number of posts in the archive
- Pagination doesn’t function properly for archive of a custom post type set as the front page
- Custom post type and custom taxonomy 404 on page 2
- Using Pagination for Custom Post Type and keeps returning 404
- Pagination for search results of custom post type [duplicate]
- Pagination for custom post types – url rewriting
- next page with custom post
- Difference between page and paged
- All blog posts are not showing up
- Pagenavi Plugin and Custom Post Type – Multipage results
- Pagination in custom post type archive.php not working
- Pagination links for custom post type shows correct number of links, but links result in Page not found
- Pagination for custom post type giving 404 error (but only for news page)
- how to skip a CPT element from the pager by custom field
- Pagination not working in custom post type. Help
- Custom Post Type Pagination getting 404 error
- Numeric pagination custom post type
- Remove custom taxonamy slug with pagination
- Add Pagination in custom Blog page template
- Custom post type, next and previous links by page title
- WordPress custom post type taxonomy paging
- WordPress doesn’t respect Page slug in custom post type url pagination. Keeps getting removed
- Custom Post Type canonical link / pagination redirecting to root
- Custom post pagination not working
- CPT/Taxonomy/Postname permalink structure makes pagination break
- Use WP pagination functions on a custom page template
- How to add pagination to a post loop in a custom BuddyPress tab
- Pagination in wp-admin for CPT
- Pagination not working (page/2 retunring 404 page)
- Post navigation doesn’t show (in custom template, custom post type, custom query)
- Add pagination to custom page
- Custom Pagination based on Custom Post Type
- Paginate Custom Post, Old and New buttons not displaying
- Pagination in custom post type page template
- How to display data with pagaination on backend?
- Custom Post Type Pagination Not Working or Single Posts Displaying?
- 404 error Custom search results page for custom post types with friendly URL
- query and paginate multiple post types
- Custom post type archive pagination with HTML5Blank theme?
- Custom Post Type Pagination Problem in Admin Section
- Paginate custom taxonomy category with wp_custom_pagination
- Custom post type navigation on static page
- Custom pagination [duplicate]
- previous_posts_link returns null when querying custom post type
- Custom Post Type Pagination for Bones Theme [duplicate]
- Pagination with Custom Post Type
- paging is not working properly on news archives page [duplicate]
- Pagination not working with custom loop
- Paged within a custom content type template [duplicate]
- Problems with pagination for a custom post type
- See the process of creating a taxonomy and tell me where I made a mistake
- Pagination for custom post type on multisite not working
- WPNavi pagination links not working on custom pages
- Custom post type pagination conflict result in 404
- Custom post type pagination not working in index.php file
- Custom post type category pages pagination returns 404