0

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"}
    {embed="artists/.next_prev"}
{/exp:channel:entries}

.next_prev embed:

        {exp:channel:next_entry}
            <p>Next: <a href="{path='artists'}">{title}</a></p>
        {/exp:channel:next_entry}
        {exp:channel:prev_entry}
            <p>Previous: <a href="{path='artists'}">{title}</a></p>
        {/exp:channel:prev_entry}
1

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

1
  • The channel parameter got it working...kind of weird that without it some entries would work ok and some wouldn't. Thanks! – Mike Lohrman 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.