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
- Set a checkmark in a category based on a URL-parameter
- WP Query with categories only shows one post and ignores the category
- Adding custom post type to count in category
- How to edit this code to get the categories in achieve page?
- Category with post type pagination returns 404
- Custom Post Type and Category Base Rewrite Issue
- Get the category from custom post type
- Post injections into Site Origins Page builder [closed]
- Custom Post Type + Categories
- How to create a gallery page with categories?
- Previous/next post links displaying wrong category than is desired
- Custom Post Slug same as Parents Category Slug
- WordPress posts page for customer filtering and sorting along with category filter
- I am having Trouble to get list of Categories of Custom post Type
- Hierarchy and access control for Custom Post Types (CPT)
- Multiple (two) category postings on the same page.
- Loop filtering Custom Post Types and/or Categories
- School & class blogs: Categorize with categories or custom posts?
- Custom post type and category link together
- Why is my category template ignoring post type?
- Best method to make posts searchable, sortable and filterable – custom field, tag or category?
- How to get custom posts sub category link
- Not sure if I should create multiple custom post type [closed]
- Cross reference custom post types
- Make a custom_post translatable
- Pre-selecting the category for a custom post type
- browse by category and tags?
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- Categories filtering in new post
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- Custom post types and category archive
- List of Posts and Categories
- next/previous links on custom post single a little screwy
- How can I show 1 featured post in a styled element, and the next few below differently styled
- How do you create a custom template to display a category with an image and related posts below?
- How can I list Custom Post Types created with the Types plugin under categories?
- List Taxonomies: Don’t list taxonomy if it has no post – depending on custom post-meta?
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Custom templates for a specific category
- CPT category hierarchy
- Categorise Custom Post Types
- WP the_posts() on single-cars.php get category link
- Category.php template for custom posts
- How to retrieve category of a post in have_post loop?
- Categories and tags for custom post types
- Create new custom post and post category of same name
- Link to the next/prev posts in index loop in same category?
- Tag page only display 10 posts
- category page for custom post type
- in_category for custom post types
- Get parent category id from child category page for custom taxonomy
- Getting used tags per post type
- Archieve.php not loading for custom post type
- multiple custom post type on category page
- Category archive in with conjunction with custom post type is empty
- Can I restrict category availability?
- WP_Query Custom Post Type if Category ID Equals
- Why does accessing url by category cause issues with post types?
- Custom post types and ‘new WP_Query’
- How can I have different content for different countries?
- How to add current custom taxonomy slug to body class
- Assign category a default post type
- Meta data (Tags and Categories) for Custom Posts not showing.
- Navigate posts with different post type that are in the same categories
- Single.php Category Post Count
- List Posts By Custom Taxonomy
- get_category_link() for custom post type does not include custom slug rewrite?
- How to Display Posts From Category Within a Custom Taxonomy?
- Showing custom post type categories in the menu
- Disable custom taxonomy on admin bar
- How to use next_posts_link/previous_posts_link for custom post types paginate?
- Why does my taxonomy have a category style div id?
- Targeting categories in custom fields
- Creating Sections for Post Types
- Custom post types with categories in template
- Invalid Taxonomy