Hi,
I have custom post types “project” and custom taxonomy – castingcategory.
There is also terms like – movies, music …
I want when I’m on single-project.php post navigation to navigate true posts from current term only. Let say movies.
When I reach last post from “movies” avalible navigation to be previews only. Now there is “Next” link wich is pointing to other term – music.
I tried code like this but something there I do wrong:
the_post_navigation( array(
'next_text' =>
'<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'casting' ) . '</span> ',
'prev_text' =>
'<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'casting' ) . '</span> ',
'in_same_term' => true,
'excluded_terms' => '',
'taxonomy' => 'castcategory',
) );
Help me, please.