WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: ProjectManager] Feature Request: Random Result (1 post)

  1. randyhoyt
    Member
    Posted 5 years ago #

    It would be great if a random result could be by the shortcode. The WordPress get_posts() function handles this with the orderby parameter. I would imagine the shortcode looking something like this:

    [project id=1 orderby="rand"]

    This would need to be implemented with a parameter limiting the number of results, so that you would be able to return (for example) one random result:

    [project id=1 orderby="rand" results="1"]

Topic Closed

This topic has been closed to new replies.

About this Topic