Title: Single Cell Shortcode &#8211; Repeat For All Rows
Last modified: August 21, 2016

---

# Single Cell Shortcode – Repeat For All Rows

 *  Resolved [jsem1101](https://wordpress.org/support/users/jsem1101/)
 * (@jsem1101)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/single-cell-shortcode-repeat-for-all-rows/)
 * Hi Tobias
 * Having used the shortcodes (eg. [table-cell id=123 cell=C3 /] to place cells 
   on a page in specific locations, is there a way to get that cell to then repeat
   for the rest of the columns contents?
 * So basically, I’m trying to take data from the table, lay it out with say the
   contents of cell D1(Title) underneath content of cell B1(Description) – easy 
   enough – but then repeat for the rest of the rows.. like a repeatable region.
 * Is that possible? or should I be using CSS to layout the contents?
 * Kind regards
    Jason
 * [http://wordpress.org/plugins/tablepress/](http://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/single-cell-shortcode-repeat-for-all-rows/#post-4504224)
 * Hi Jason,
 * thanks for your question!
 * I’m not really sure that I understand.
    Do you mean something like only adding
   the Shortcode `[table-cell id=123 cell=C3 /]`, but getting the value of D3, E3,
   and so on as well? Then, no, that’s not possible. You’ll have to add every Shortcode
   separately. The Singe Cell Shortcode can only get the value of one cell at a 
   time.
 * And yes, CSS for the layout will probably be helpful, depending on how this looks
   like.
 * Regards,
    Tobias
 *  Thread Starter [jsem1101](https://wordpress.org/support/users/jsem1101/)
 * (@jsem1101)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/single-cell-shortcode-repeat-for-all-rows/#post-4504245)
 * Hi Tobias
 * ok, thanks for letting me know. Yes basically that was it, so I could lay the
   contents out different to just lateral rows, but still have it repeat for all
   data in the table, rather than just the one cell.
 * Don’t worry i realise i’m pushing the limits of what the plugin does, and i’ll
   probably get roughly what i want with css(?).
 * The page i’m using the table for is a restaurant menu with maybe 400 to 500 records,
   hence why i’d like to lay it out globally instead of cell by cell.
 * Maybe a neat update for future to have a container/shortcode that repeats the
   cells contained within it?.. that would definitely be another donation from me
   🙂
 * All the best
    Jason
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/single-cell-shortcode-repeat-for-all-rows/#post-4504247)
 * Hi Jason,
 * for something like this, where you just want to use the table as a data storage
   from which you then create a custom layout, it should be better to use a custom
   solution, e.g. based on mySQL and PHP.
    With that, you’d have the flexiblity 
   to query the data that you need with mySQL, and the power of PHP to print it 
   to the page in the desired way.
 * Regards,
    Tobias

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

The topic ‘Single Cell Shortcode – Repeat For All Rows’ 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/)

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/single-cell-shortcode-repeat-for-all-rows/#post-4504247)
 * Status: resolved