I setup the next/previous entry linking code in an embed because it is positioned within a channel entries tag in the template. Same template, some entries display the links fine, and others don't. Can't figure out why it works for some and not others.

Template debugging says: Channel Next/Prev Entry tag error: Could not resolve single entry page id. But i don't know why.

{exp:channel:entries channel="artists" disable="categories|member_data|category_fields|pagination" dynamic="yes"}

.next_prev embed:

            <p>Next: <a href="{path='artists'}">{title}</a></p>
            <p>Previous: <a href="{path='artists'}">{title}</a></p>

Make sure to include the channel parameter into your next and prev entry tags.

I would also look into the url_title parameter because you are embedding these. Just get the segment that has your entries url title

  • The channel parameter got it working...kind of weird that without it some entries would work ok and some wouldn't. Thanks! Aug 22 '14 at 18:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.