WordPress.org

Support

Support » How-To and Troubleshooting » Faulty tag: get_linksbyname

Faulty tag: get_linksbyname

  • Mark (podz)
    Support Maven

    @podz

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Mark (podz)
    Support Maven

    @podz

    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.

    NuclearMoose
    Member

    @nuclearmoose

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

    NuclearMoose
    Member

    @nuclearmoose

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

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

    Mark (podz)
    Support Maven

    @podz

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Faulty tag: get_linksbyname’ is closed to new replies.