Forums
Home / Fixing WordPress / Single Custom Post Type navigation
(@alphacentavr)
12 years, 3 months ago
Hi all! I has Custom Post Type(CPT) “Car”. And I would like create navigation on single page of this CPT, etc, single-car.php : “Previous CPT” and “Next CPT”. Standard methods (previous_posts_link and next_posts_link) doesn’t work…
Any ideas? Thanks.
(@vtxyzzy)
I think the functions that you want are ‘previous_post_link()’ and ‘next_post_link()’, not ‘previous_posts_link()’, etc.
Notice no ‘s’ after ‘post’. ‘post_link()’ instead of ‘posts_link()’.