ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Nex/Previous Entry tags not displaying

August 02, 2012 8:41am

Subscribe [2]
  • #1 / Aug 02, 2012 8:41am

    edward.willey

    23 posts

    I’ve just (finally) updated an old site to EE2 and am updating/tidying some of the templates.

    I’ve just created a new template that contains the code:

    {exp:channel:entries channel="press" limit="1" url_title="{segment_2}"}
    
     <h2>{title}</h2>
    <p> {if summary}<strong>{summary}</strong>{/if}<br />
     {body}<br />
           <br />
    {/exp:channel:entries}</p>
    
    
    
    <p><br />
    {exp:channel:next_entry channel="press"}<br />
     strong>Previous article</strong><br />
    <a href="http://{base_url}article/{url_title}">{title}</a><br />
    {/exp:channel:next_entry}</p>
    
    <p>{exp:channel:prev_entry channel="press"}<br />
     strong>Next article</strong><br />
    <a href="http://{base_url}article/{url_title}">{title}</a><br />
    {/exp:channel:prev_entry}

    I’ve tried various different tweaks to the parameters of the channel entries tag and the next/previous tags, but neither of the next/previous tags ever display at all :(

  • #2 / Aug 02, 2012 3:53pm

    Shane Eckert

    7174 posts

    Hey edward.willey,

    I am sorry to hear you are running into this problem.

    It looks like the strong tag is missing an opening bracket.

    Can you check that?

    Thanks,

  • #3 / Aug 02, 2012 5:45pm

    edward.willey

    23 posts

    Hmmmm, in the ACTUAL code, the strong brackets are present and correct… not sure why the forum code tags have dropped them off…? :/

  • #4 / Aug 03, 2012 2:38pm

    Shane Eckert

    7174 posts

    Hey edward.willey,

    Can you show me the url that you are using?

    I pasted your example in and it works perfectly.

    I have a feeling your url is not including the article title.

    Thank you,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases