• Hi,

    A very new wordpress theme designer here. I recently started working with custom post types.

    I have 2 custom post types ‘releases’ and ‘videos’ and have separate releases-single and videos-single template.

    I have a left and right icon on the bottom of the page that uses previous_post_link() and it works fine.

    <?php previous_post_link( ‘%link’, ‘<i class=”fa fa-chevron-circle-left left-btn”></i>’)?>
    <?php next_post_link( ‘%link’, ‘<i class=”fa fa-chevron-circle-right right-btn”></i>’)?>

    But I get only videos when I’m on /videos and only releases on /releases

    I would like to get videos and releases when I click next and previous links.

    How is that possible?

    Thanks in advance!

  • The topic ‘Next – Previous Link on single page for multiple post types.’ is closed to new replies.