Title: Show random record
Last modified: April 11, 2020

---

# Show random record

 *  [geirhog](https://wordpress.org/support/users/geirhog/)
 * (@geirhog)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/show-random-record/)
 * Hi!
    I am running a website for artists, and of course I use PDB as a database
   plugin. Have one wish, and that is to be able to automatically show an artist,
   completely random, for example, using [pdb_singel] on the front page. Is this
   possible? There is no solution in the documents I have searched through.
 * /GeirH
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshow-random-record%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/show-random-record/#post-12661002)
 * The list shortcode has the ability to choose a record at random. If you set up
   the shortcode like this:
 * `[pdb_list orderby=random list_limit=1]`
 * it will show a single record using the layout determined by the list template.
   You can also determine which fields are shown in the shortcode using the “fields”
   attribute. If you want to limit which records it chooses from, you can use the“
   filter” attribute for that.
 * For the presentation, I also have a tutorial that explains how to set up a list
   template that shows a single record using the single record shortcode if you’d
   rather go that way. It is for a slightly different purpose, but the basic idea
   is the same:
 * [Showing a Search Result as a Single Record](https://xnau.com/showing-a-search-result-as-a-single-record/)
 *  Thread Starter [geirhog](https://wordpress.org/support/users/geirhog/)
 * (@geirhog)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/show-random-record/#post-12670967)
 * Hi!
    This was almost as I had intended. What I do not want is that there is an
   opportunity to browse other records. I just want to see a post alone. See: [https://test.web4artist.no](https://test.web4artist.no)
 *  Plugin Author [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/show-random-record/#post-12674366)
 * What is giving them the opportunity to browse other records? I don’t see that
   it is possible to do so on that page.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Show random record’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/show-random-record/#post-12674366)
 * Status: not resolved