Hi Tom,
Thanks for the info,
For my custom post type I copied single.php
and content-single.php
, renamed them and put them in the child theme folder i.e. single-pictures.php
and content-pictures.php
. Then I changed this code in single-pictures.php
:
get_template_part( 'content', 'single' );
to
get_template_part( 'content', 'pictures' );
From what I have read in other posts here this is correct? I am using the two files and calling one into the other.
In both those template files there is no usage of the code you provided so I’m not sure how to actually get the before and after navigation to display.
The below code in content-pictures.php
is not working for the custom posts even though I have not changed any of the code for the two copied templates:
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'generatepress' ),
'after' => '</div>',
) );
and neither is the Category and Tag links.
I would like the custom posts to just pickup the functionality of the standard posts in this regard.
Thanks,