Retrieving and displaying field from random row.
-
Firstly, thanks for the great work on the TablePress plugin. I’m new to WordPress, I’ve been working for days on problem and TablePress comes the closest to fixing so far.
I’m using the newest version of everything.
I’ve searched through the FAQ and support topics and a couple were close but I couldn’t find any that were spot on.
Instead of listing the entire contents of a table, I’m looking for a way to retrieve and post a single comment field from a table. Your extension Single_Cell_Content comes close if I could just pass a variable into the
shortcode as the row.
For this site it should be a random number for any existing row. The comment always is in the same column.
For that matter, the table only needs one column (for the comment field). I just need to rotate through them with each visitor, or post them randomly.
Whenever I try to use a Random Number Plugin to indicate the row, the Single_Cell_Content code loses everything after “table”.
I’ve approached this from MySQL and tables and tables seems the easier way to go.
Any help would be quite appreciated.
Thanks.
Jack Vander Beek
- The topic ‘Retrieving and displaying field from random row.’ is closed to new replies.