WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Next/Previous Posts and Footer no longer display (7 posts)

  1. lingo123
    Member
    Posted 3 years ago #

    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!

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    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/

  3. lingo123
    Member
    Posted 3 years ago #

    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!

  4. lingo123
    Member
    Posted 3 years ago #

    I have no idea what "use the pastebin" means....

  5. alchymyth
    Forum Moderator
    Posted 3 years ago #

    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?

  6. lingo123
    Member
    Posted 3 years ago #

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

  7. lingo123
    Member
    Posted 3 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic