WordPress.org

Ready to get started?Download WordPress

Ideas

random order list

  1. isomatrix
    Member

    the following functions could return a random order list

    wp_list_authors
    wp_list_categories
    wp_list_pages
    wp_list_bookmarks
    wp_list_comments
    wp_get_archives
    wp_page_menu
    wp_dropdown_pages
    wp_dropdown_categories
    wp_dropdown_users

    Posted: 4 years ago #
  2. Jen Mylo
    Key Master

    What is the feature you are suggesting, and what would be the use case?

    Posted: 4 years ago #
  3. isomatrix
    Member

    check my site http://www.lakas.com.ph (it's still under construction btw)
    everytime you refresh the page a random order listing of sports would appear.

    the purpose of the listing is that i want my readers to see what other sports or things they could try by giving them random sports(pages)

    i edited the sidebar.php code for that.
    i used the query_post using the orderby=rand parameter and looped through the permalinks and title of the queried posts/pages.

    the code would be shorter, nicer and easier to maintain if the listing functions could arrange the queried list in random.

    i also though about the pages with parents. the children would definitely be under their parents. so the option to query random parents with random children is a possibility.

    i hope this would help make it easier to understand.

    Posted: 4 years ago #
  4. scribu
    Member

    Should close because:

    1. It's not so hard to do atm, using either orderby=rand or PHP's shuffle() function

    2. It's not a highly demanded feature.

    Posted: 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    1 Vote
  • Status

    Sorry, not right now

Tags