Wondering how I can include some text from a custom field within the prev/next post links.
Currently on my single.php template file, I've included the WordPress prev and next post links at the bottom of the page. However, when I pull the custom field info for the Episode Number it pulls the episode number for the current post. Wondering how I can access the custom field (types_render_field('episode-number') in the prev and next posts.
The prev post should be Episode 1, next post should be Episode 2.
In order to do this it will take some manipulation of Data. WordPress has a built in function to get the previous and next post link for the pagination.
Whilst i'm not able to write the code for you, I can advise you on what is needed. Both the functions above get the post objects for the previous and next post respectively.
What you will need form them is the ID of next and previous post
Now that you're able to get the ID you can pass this into the Types function to get the custom field data to manually select the post you want the field data from.