I’m working on a /comments page (individual post) and I’d like to be able to link to the previous and next posts AND include some of my custom fields in those links, e.g. “Previous post: Title, by So-and-so”, all wrapped in an <a> tag. I know this has been batted around in the forums a few times, and that using {exp:weblog:previous_entry} won’t won’t because it doesn’t support custom fields. I tried using {exp:weblog:entries weblog="{my_weblog}” orderby=“date” limit=“1” offset=“1”} (notice of the OFFSET=“1”) but that doesn’t seem to grab the right entry relative to the current post, and it doesn’t seem to handle the case where there is no previous entry (just shows the current entry if I’m doing this right). Am I missing something? Also, using offset=”-1” for the NEXT post gives me a MYSQL error…
I also tried using {pagination} tags inside the {exp:weblog:entries} tags but those don’t seem to support custom fields either…
Any ideas on how to build simple previous / next links in EE that support custom fields? So I’m wondering if there’s a way of working it outside the pagination/previous_entry methods, e.g. somehow using offset, so as to allow the use of custom fields?
Thanks : )