Support » Themes and Templates » Next/Previous Posts and Footer no longer display

  • Resolved lingo123


    Suddenly the “previous post” / “next post” labels aren’t showing up under single posts, and the page footer isn’t being called either. Help!

    The site uses the Twenty Ten theme. Here’s the code for the single post (single.php) file (I hope I’m inserting this correctly–sorry!):

    [Code moderated as per the Forum Rules. Please use the pastebin]

    The “Previous News Story” and “Next News Story” links have recently just dropped off when you go to individual posts now, and the footer doesn’t display either. Not sure what’s happened. I just noticed this a week or so ago.


Viewing 6 replies - 1 through 6 (of 6 total)
  • Michael


    Forum Moderator

    a link to your site might be useful, to see if the post content is not causing the problem.

    do the facebook and twitter things show properly?

    do your single post pages validate:

    Thank you for responding to me! The site is a client’s; I can’t provide a link. I’m sorry.

    Yep, the FB and Twitter things work, and each single post does display properly–all the info is there, in proper style. It’s just that the prev/next post code is also there, but doesn’t seem to be working suddenly.

    The validator found a bunch of errors, but none related to the actual problem I’m having (lol). The validator doesn’t like a lot of stuff, but the pieces it doesn’t like are working properly.

    The guy who programmed this thing originally is no longer available, so it’s kind of fallen on me. I’m more of a designer than a coder, and not sure what to do with this….

    Am wondering if I’m just missing a </div> code somewhere? Or the lines aren’t indented right? (does that even matter?)

    Thanks again!

    I have no idea what “use the pastebin” means….



    Forum Moderator

    click on the link ‘pastebin’
    – this wil open an application where you can paste your code into a obvious area
    – then click ‘submit’
    – once the content is submitted, you’ll see the browser address changed
    – copy this browser address and post it here.

    it is a good way of sharing code in a readable way, without overloading the forum thread.

    i checked the code before it was removed, and the divs are balanced properly.

    no idea what happens inside the facebook and twitter code.

    what happens if you remove one of these codes at a time?


    When I remove the Twitter code, THEN all the rest of the page works.

    THANK YOU! At last I’m getting somewhere! Really appreciate your help!

    Except: So WTH is wrong with the Twitter code, I wonder … ?

    Got it! Correct Twitter code shuld be:

    <div id="sharingtwitter"><a href="" class="twitter-share-button" data-text="<?php the_title(); ?>" data-url="<?php the_permalink() ?>" data-count="horizontal" data-via="TwitterUserName">Tweet</a><script type="text/javascript" src=""></script></div>

    Solved! Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Next/Previous Posts and Footer no longer display’ is closed to new replies.