WordPress.org

Ready to get started?Download WordPress

Forums

Random specific posts (7 posts)

  1. newboxters
    Member
    Posted 6 years ago #

    How do I do to raffle aleatory some posts that I to select?

    Example:
    I choose the id posts: 1, 7, 13, 22 and 42

    And I made a prominence area to exhibit just one of them, and when it refresh the page, I exhibited another one (random).

    Did I see plugins, but is everybody to random any post, and me precise to random specific posts and do I believe that won't need plugins for that, it could help me?

    Thank you.

  2. newboxters
    Member
    Posted 6 years ago #

    No is possible?

  3. julious
    Member
    Posted 6 years ago #

    I would also like to know on this resource.
    Is it possible to show aleatory posts (random), with base in those what did I select?

  4. newboxters
    Member
    Posted 6 years ago #

    Does still nobody know?

  5. Adam Brown
    Member
    Posted 6 years ago #

    I'm not sure I understand. Are you looking for a widget to place a random post title in your sidebar?

  6. BC
    Member
    Posted 5 years ago #

    This is possible with the Random One Cat Widget. Since you just assign these posts to a category and then it will choose one of them to display.

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    ...

    $postnums = array(1, 7, 13, 22, 42);
    shuffle($postnums);
    $post=get_post($postnums[0]);

Topic Closed

This topic has been closed to new replies.

About this Topic