WordPress.org

Ready to get started?Download WordPress

Forums

Links have stopped displaying (14 posts)

  1. particle
    Member
    Posted 8 years ago #

    I added a new link and now it is the only link showing in sidebar. As far as I can see the make other invisble box is not checked. I am using Green Marinee theme and the php get_links reads as folows <br>
    <h3><?php _e('The Associates'); ?></h3>

    <?php get_links('-1', '

  2. ', '
  3. ', '', 0, 'name', 0, 0, -1, 0); ?>

    ALso I have tried to check the show updated links option and saw a post to check and see in wp_links table had timestamp info. I checked and all the timesatamp ino is zeroes. what can I do to fix both of these issues?

  • MichaelH
    Member
    Posted 8 years ago #

    What happens if you just use get_links()?

  • particle
    Member
    Posted 8 years ago #

    same thing..

  • MichaelH
    Member
    Posted 8 years ago #

    According to docs, get_links() is not to use settings from your admin panel.

    You don't have a Limit set on your Link Categories do you?

  • particle
    Member
    Posted 8 years ago #

    No.

  • Beel
    Member
    Posted 8 years ago #

    So what happens when you remove the link you added?

  • particle
    Member
    Posted 8 years ago #

    It displays zero links. It is only displaying that link, as if the only show updated links box was checked, which it isn't.

  • Beel
    Member
    Posted 8 years ago #

    Try what I use -
    <ul id="sc5">
    <?php get_links('-1', "\t<li>", '</li>', ' ', '0', '_updated', '0', '0', '12', '1'); ?>
    </ul>

    (at least it will make the one link that displays xhtml valid ;)

  • MichaelH
    Member
    Posted 8 years ago #

    Just found that under Links, Manage Links, that any link that has Visible set to No then get_links() didn't display that link. Maybe need to check each link to make sure it's set to Visible. Updated Template_Tags/get_links#Description to reflect this information.

  • particle
    Member
    Posted 8 years ago #

    I can't believe it was as simple as toggling them back on. THanks, I feel like an idiot!!!! I guess the better question is what toggled them all so they were not visible?

  • particle
    Member
    Posted 8 years ago #

    Beel, I am not sure what you are referring to

  • MichaelH
    Member
    Posted 8 years ago #

    They probably got toggled because at one point the Link Category had the Toggle set When new link is added toggle all others to be invisible.

  • particle
    Member
    Posted 8 years ago #


  • Beel
    Member
    Posted 8 years ago #

    What I am referring to is how you have the list of links generated - it is not valid xhtml. You either need to wrap get_links in an li tag or have get_links wrap each link in li tags as I have done.

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags