First please check your “custom_post_type” function that you Register Custom Post Type is everything correct like 'taxonomies'=> array( 'category') & 'has_archive' => true,
! If so then you must be put wrong way to display it.
About next_post_link and previous_post_link Please try with like this inside your single-realisation.php file
$prev_post = get_previous_post(); $next_post = get_next_post();
if(!empty($prev_post)):
echo '<a href="'.get_the_permalink($prev_post->ID).'">'.__('Previous','text-domain').'</a>';
endif;
if(!empty($next_post)):
echo '<a href="'.get_the_permalink($next_post->ID).'" >'.__('Next','text-domain').'</a>';
endif;
I believe you will get your next & Previous post link form your custom post type also;
Thanks
Msua
Related Posts:
- Can the Next/Prev Post links be ordered by menu order or by a meta key?
- Filter next_post_link() and previous_post_link() by meta_key?
- How can I get next/ previous post links to order by a filter (by the last word of the title)?
- How can I get next post id after current post id for custom post type
- Problem excluding category from get_next_post
- specify meta_key / meta_value condition for prev_post_link and next_post_link
- Using previous_post_link and next_post_link to wrap around post sequence
- Working with Next and Prev links in Single Taxonomy Templates
- Next and Previous Posts of Same Parent
- Modify previous and next post links to current Authors Other posts
- Why are previous_post_link/next_post_link skipping some posts?
- Add Previous/Next Buttons to CPT Single Pages Only
- Custom Posts and Posts – next_post_link and previous_post_link not working together
- Display next 3 posts based on custom taxonomy
- Include “Scheduled” (“Future”) Posts in WordPress Post Navigation ( previous_post_link, next_post_link ) for a Specific Custom Post Type
- 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?
- Prev/Next Navigation on Single Post Disappeared for Custom Post Type
- Back, Next, and Previous links for the REFERRING term archive
- get_previous_post_link and get_next_post_link of custom post type that share custom field value
- Previous/Next custom post links within custom taxonomy
- Next/Previous Post Links in single-[custom-post-type].php file
- show previous/next post orderer by title in custom post types
- previous_posts_link returns null when querying custom post type
- Adding categories to custom post type in permalink
- How to change permalink structure for custom post type and it’s taxonomies?
- Filtering a custom post type by custom taxonomy in archive template
- How to build a complex page structure
- Load custom posts with same tag as page
- Hide/Show only specific categories in wp-admin new-post.php
- Get categories for a specific post – Custom post type
- Include custom post types in categories widget
- How to get dynamically custom post type that are under a certain category
- Listing and accessing categories for a custom post type
- How to show related posts by category or custom post type?
- Custom Post Type, Two categories, Two columns with Pagination
- New WP_query in template not working with CPT+category on some pages
- Taxonomy list. Order by a specific custom post type count
- Post in Multiple Categories to stay in current category (permalink, next previous post link)
- Custom/separate categories for custom post type
- Categories not working as expected with custom post type
- get_categories() for only CPT
- category.php displays ALL posts instead of just those with the current category
- Display Next/Prev when looping Custom post-types archive?
- Custom Post Types and Categories?
- Set a default category – if the user didn’t select one- before creating a post
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Custom Post Types and independent Categories – complex Taxonomy
- Should I use custom taxonomy or custom post type
- Custom Post Type Archive Page Filtering
- Get parent categories of custom post type
- How to query_post custom posts within default taxonomy?
- Custom Post Type With Categories
- Display posts from Custom Post Type in category page on front-end
- Showing posts from different categories and from custom post type
- Getting categories of posts under a custom taxonomy
- Category with post type pagination returns 404
- Custom Post Slug same as Parents Category Slug
- browse by category and tags?
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Custom templates for a specific category
- Create new custom post and post category of same name
- multiple custom post type on category page
- Single.php Category Post Count
- Custom Post Type Category URL
- Custom Post Type Categories URL not displaying posts
- WP Query results showing posts outside of category ID
- How to get the current category with custom posts
- Better approach for a WordPress Inventory
- Showing all posts and custom post types by using one category
- List child categories from parent category on custom taxonomy page
- How to properly use Categories with Custom Post Types
- Custom post type category permalinks and archive pages
- Can’t Get Parent and Child Categories of Custom Taxonomy to Display
- Display custom post types by category
- Searching in multiple category + URL hierarchy in real estate WordPress site
- How to display custom taxonomy term specific post?
- Category permalinks don’t work even after flushing
- How to sort post category using its Description
- Custom WordPress theme not displaying posts from category
- Wanting to list all Post types under a common category
- How to show posts of the same category on a page?
- Get posts in custom post type categories
- Modify the category post counting function
- Reuse the “category” slug for a custom post type
- Custom Template for CPT Categories
- Custom post types not displaying per category
- How To Display Category list from Portfolio post type plugin?
- Dropdown switching subcategories portfolio
- Display custom Taxonomies same as listing Categories
- Custom Post type archives / categories give 404
- Custom Post Type – Admin Columns
- Problem to show custom post type in archive page category wise
- Need to build custom metabox select prev posts by category
- Category / Custom Post Type permalink issue
- Categories in custom post types
- Sorting custom post types by category?
- Categories and page filtering with pre_get_posts
- Get all custom_post_type posts + blog posts from one category in a single query
- Select Category as Page Parent