Title: Random entry
Last modified: August 6, 2022

---

# Random entry

 *  Resolved [wpapm](https://wordpress.org/support/users/wpapm/)
 * (@wpapm)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/random-entry/)
 * Hello Marcel,
 * Thanks for this great guest book!
 * Is there a possibility to display exactly one guestbook entry (is there!) but
   to display it again randomly from the existing entries when the page is accessed?
 * Greetings Jan

Viewing 1 replies (of 1 total)

 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/random-entry/#post-15896875)
 * Hi Jan,
    Thank you.
 * Currently there is no way to show a random guestbook entry.
    I don’t have any
   plans to add this, sorry to say this.
 * With custom PHP code it should be possible, but not even that straightforward.
   You need to use the class `gwolle_gb_entry`:
    [https://plugins.trac.wordpress.org/browser/gwolle-gb/trunk/functions/gb-class-entry.php#L45](https://plugins.trac.wordpress.org/browser/gwolle-gb/trunk/functions/gb-class-entry.php#L45)
   With the `load` method and a random ID you can load an entry: [https://plugins.trac.wordpress.org/browser/gwolle-gb/trunk/functions/gb-class-entry.php#L86](https://plugins.trac.wordpress.org/browser/gwolle-gb/trunk/functions/gb-class-entry.php#L86)
   Then display it using the `gwolle_gb_single_view` function: [https://plugins.trac.wordpress.org/browser/gwolle-gb/trunk/functions/gb-single-view.php#L21](https://plugins.trac.wordpress.org/browser/gwolle-gb/trunk/functions/gb-single-view.php#L21)

Viewing 1 replies (of 1 total)

The topic ‘Random entry’ is closed to new replies.

 * ![](https://ps.w.org/gwolle-gb/assets/icon-256x256.png?rev=1114688)
 * [Gwolle Guestbook](https://wordpress.org/plugins/gwolle-gb/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gwolle-gb/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gwolle-gb/)
 * [Active Topics](https://wordpress.org/support/plugin/gwolle-gb/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gwolle-gb/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gwolle-gb/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/random-entry/#post-15896875)
 * Status: resolved