Title: Random Single Column Data
Last modified: May 7, 2022

---

# Random Single Column Data

 *  Resolved [nirnaya](https://wordpress.org/support/users/nirnaya/)
 * (@nirnaya)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/random-single-column-data/)
 * Hi, How To display random data from a particular column from a particular table?
 * [table id=123 column_order=random /] in this where have to use column number?

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/random-single-column-data/#post-15624950)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Just to clarify, do you want a random cell value (i.e. a random row value from
   a pre-defined column)? Or a full random row? Or a full random column?
    Can you
   maybe describe this with a short example?
 * Regards,
    Tobias
 *  Thread Starter [nirnaya](https://wordpress.org/support/users/nirnaya/)
 * (@nirnaya)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/random-single-column-data/#post-15625314)
 * Hi, already told value from a particular column randomly.(Full random column 
   value)
 * [https://prnt.sc/kpR5lHnGVmEv](https://prnt.sc/kpR5lHnGVmEv)
 * Here ,for every table cell , I need a random column value of a particular column.
   So that I don’t need to use any random test website.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/random-single-column-data/#post-15625445)
 * Hi,
 * your best chance then is to use the TablePress Extension from [https://tablepress.org/extensions/table-cell-shortcode/](https://tablepress.org/extensions/table-cell-shortcode/)
   and make a code modification in it, so that it uses a random number (PHP `rand()`
   function) for the `$row` value.
 * Regards,
    Tobias
 *  Thread Starter [nirnaya](https://wordpress.org/support/users/nirnaya/)
 * (@nirnaya)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/random-single-column-data/#post-15625463)
 * But I’m using html table to display random column text.
 *  Thread Starter [nirnaya](https://wordpress.org/support/users/nirnaya/)
 * (@nirnaya)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/random-single-column-data/#post-15625471)
 * I don’t want any specific row,but just the random column value for each html 
   table cell
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/random-single-column-data/#post-15625628)
 * Hi,
 * the approach for that would then be to create a new small table (with just one
   row) and add the `[table-cell ... /]` Shortcodes into the cells. Essentially,
   you would first create a mechanism to get a random cell from a column and then
   construct whatever new structure you want from that.
 * Regards,
    Tobias

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

The topic ‘Random Single Column Data’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/random-single-column-data/#post-15625628)
 * Status: resolved