I am having an issue trying to get next_entry links working on single entry pages with a URL like this:
http://www.mysite.com/index.php/health-pages/view/blood-pressure/this-is-the-entry
Where:
health-pages = template group
view = template
blood-pressure = category
this-is-the-entry = entry
{exp:channel:entries channel="health-pages" url_title="{segment_4}" limit="1"}
<!-- Content -->
{/exp:channel:entries}
{exp:channel:next_entry channel="health-pages" category_group="3" category="{segment_3_category_id}"}
Next entry: <a href="http://{path=health-pages/view/{segment_3}/}">{title}</a>
{/exp:channel:next_entry}In another attempt, I have also tried to obtain the entry ID from the URL because the next_entry tag sits outside of the channel:entries tag, by using the “URL title to entry ID” plugin at http://devot-ee.com/add-ons/url-title-to-entry-id/ as so:
{exp:channel:next_entry channel="health-pages" category_group="3" category="{segment_3_category_id}"
entry_id="{exp:url_title_to_entry_id url_title='{segment_4}'}"}
Next entry: <a href="http://{path=health-pages/view/{segment_3}/}">{title}</a>
{/exp:channel:next_entry}Above, I am using Low Seg2Cat to get the category ID where needed.
Does anyone have any idea why this isn’t working? Next_entry links are not showing up at all ...
This has become so frustrating, that I’ve started trying to rebuild things using reverse_related_entries. I’d go either road right now.
Thank you for any ideas, I’ve been stuck on this one for hours and am hoping that someone with a little more EE experience can put me back on the right road.