• Resolved nirnaya

    (@nirnaya)


    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 TobiasBg

    (@tobiasbg)

    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

    (@nirnaya)

    Hi, already told value from a particular column randomly.(Full random column value)

    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 TobiasBg

    (@tobiasbg)

    Hi,

    your best chance then is to use the TablePress Extension from 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

    (@nirnaya)

    But I’m using html table to display random column text.

    Thread Starter nirnaya

    (@nirnaya)

    I don’t want any specific row,but just the random column value for each html table cell

    Plugin Author TobiasBg

    (@tobiasbg)

    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.