• Resolved lingo123

    (@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.

    Help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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: http://validator.w3.org/

    Thread Starter lingo123

    (@lingo123)

    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!

    Thread Starter lingo123

    (@lingo123)

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

    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.

    btw:
    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?

    Thread Starter lingo123

    (@lingo123)

    AHA!

    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 … ?

    Thread Starter lingo123

    (@lingo123)

    Got it! Correct Twitter code shuld be:

    <div id="sharingtwitter"><a href="http://twitter.com/share" 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="http://platform.twitter.com/widgets.js"></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.