WordPress.org

Ready to get started?Download WordPress

Forums

Faulty tag: get_linksbyname (6 posts)

  1. Mark (podz)
    Support Maven
    Posted 9 years ago #

    <?php get_linksbyname('Reading', '', '<br />', '', FALSE, 'rand', TRUE, FALSE, 6, FALSE); ?>

    Should return only links from the 'Reading' cat, but it's grabbing any link from anywhere. Adds to the randomness though :)

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Okay okay ... so lock me in a box with no Diet Coke for a week...

    It DOES work, but if you have previously used the "adding spaces to cat names to get them in the right order" trick, you'll need to remove those spaces.

  3. NuclearMoose
    Member
    Posted 9 years ago #

    /me looks for a box and buys Diet Pepsi to force-feed to Podz

  4. NuclearMoose
    Member
    Posted 9 years ago #

    This also looks like something that should be documented in Codex.

  5. DarkCryst
    Member
    Posted 9 years ago #

    could you not jsut add the same spaces when you call that function?

  6. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Maybe so, but I haven't displayed links in such a way that I needed the spaces for a long time, so it makes more sense to just get rid.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.