WordPress.org

Ready to get started?Download WordPress

Forums

10 random links (2 posts)

  1. Konstantin
    Member
    Posted 7 years ago #

    Hello everybody!
    I'm looking for the correct tag to add 10 random links from all my link-categories without the link description using the get_links tag. How can I do that?

    Thanks,
    klepto

  2. Kafkaesqui

    Posted 7 years ago #

    <?php get_links(-1, '<li>', '</li>', '', 0, 'rand', 0, 0, 10); ?>

    That should do it (-1 for the 'category' or first parameter tells it to use all link categories).

Topic Closed

This topic has been closed to new replies.

About this Topic