Title: Show random data
Last modified: September 1, 2016

---

# Show random data

 *  Resolved [heartsblack](https://wordpress.org/support/users/heartsblack/)
 * (@heartsblack)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/show-random-data/)
 * Hello,
 * I have uploaded the content in a table and I want to display random data from
   it.
    For example there are 100 rows and I only want to display 5 latest entries
   from the table. Is it possible with this plugin ?
 * [https://wordpress.org/plugins/wpdatatables/](https://wordpress.org/plugins/wpdatatables/)

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

 *  Plugin Author [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * (@wpdatatables)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/show-random-data/#post-7603936)
 * Hi there,
 * Well, not out of the box. As a workaround, you can use a PHP ‘adapter’ file that
   would have this random logic, and output the data in a form of serialized array.
   Then you can use this serialized array as an input source for wpDataTables.
 *  Thread Starter [heartsblack](https://wordpress.org/support/users/heartsblack/)
 * (@heartsblack)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/show-random-data/#post-7604029)
 * Sorry but I don’t have any knowledge of adapter file or serialized array. can
   you please show me an example or something ? or may be a shortcode which would
   display just first 4-5 rows.
 *  Plugin Author [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * (@wpdatatables)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/show-random-data/#post-7604179)
 * Hi,
 * ‘Adapter’ is a way to call a PHP script that would read the data that you need
   from the source, parse and reformat it in the way that you need. I could of course
   show some code examples, but if you do not know any PHP I’m afraid this wouldn’t
   help much.

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

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

 * ![](https://ps.w.org/wpdatatables/assets/icon-128x128.gif?rev=3010404)
 * [wpDataTables - WordPress Data Table, Dynamic Tables & Table Charts Plugin](https://wordpress.org/plugins/wpdatatables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdatatables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdatatables/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdatatables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdatatables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdatatables/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/show-random-data/#post-7604179)
 * Status: resolved