Title: Get table content dynamically
Last modified: March 20, 2024

---

# Get table content dynamically

 *  Resolved [baqsny](https://wordpress.org/support/users/baqsny/)
 * (@baqsny)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/get-table-content-dynamically/)
 * Hi.
 * I’m using oxygen builder with repeater element. I can get table title dynamically
   easily but content is in raw format. Is there a possibility to get table content
   like by shortcode for table but dynamically?
 * What I’m trying to achieve:
 * > [View post on imgur.com](https://imgur.com/a/3TIxTQW)
 * What I’m getting right now:
 * > [View post on imgur.com](https://imgur.com/a/SjnrPNS)
    -  This topic was modified 2 years, 2 months ago by [baqsny](https://wordpress.org/support/users/baqsny/).

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/get-table-content-dynamically/#post-17517324)
 * Hi!
 * Thanks for your post and sorry for the trouble!
 * Unfortunately, I don’t know this Repeater element, so that I don’t know how it
   works. So, I can’t tell you why it shows the raw internal data and not the Shortcode
   output, sorry 🙁
 * Regards,
   Tobias
 *  Thread Starter [baqsny](https://wordpress.org/support/users/baqsny/)
 * (@baqsny)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/get-table-content-dynamically/#post-17517442)
 * As I can see it take values from database by post id. But what I think I need
   is code that i can call to get id of table so i can call it dynamically later.
    -  This reply was modified 2 years, 2 months ago by [baqsny](https://wordpress.org/support/users/baqsny/).
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/get-table-content-dynamically/#post-17517560)
 * Hi,
 * yes, you would need to use the table ID somewhere. But how to use a Shortcode
   as the repeater content is more of a question for the Oxygen support team.
 * Regards,
   Tobias
 *  Thread Starter [baqsny](https://wordpress.org/support/users/baqsny/)
 * (@baqsny)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/get-table-content-dynamically/#post-17525251)
 * The question is how to get table programatically whilst in the post loop?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/get-table-content-dynamically/#post-17525506)
 * Hi,
 * you could use the Template Tag functions to print the table (if you mean that
   you are looping the post loop in PHP here). See [https://tablepress.org/faq/documentation-template-tag-functions/](https://tablepress.org/faq/documentation-template-tag-functions/)
 * Regards,
   Tobias
 *  Thread Starter [baqsny](https://wordpress.org/support/users/baqsny/)
 * (@baqsny)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/get-table-content-dynamically/#post-17526984)
 * It’s not what I need because in those functions i need to pass id explicitly.
   What I need is function which will loop and print all the tables. Maybe it will
   be easier to understand that by giving you my use case. I have accordion element
   so there is “Title” and “content”. I want in each item of accordion title as 
   table name and content as printed table.
 * example of accordion: [https://imgur.com/a/khSsEAo](https://imgur.com/a/khSsEAo)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/get-table-content-dynamically/#post-17527195)
 * Hi,
 * Ah, you want to loop over all TablePress tables on the site? Is it really that
   many that you can’t manually list those? And what if you later add a table that
   you don’t want to show like that?
 * Regards,
   Tobias
 *  Thread Starter [baqsny](https://wordpress.org/support/users/baqsny/)
 * (@baqsny)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/get-table-content-dynamically/#post-17527205)
 * This won’t be the problem (probably) because i use this tables as pricelists.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/get-table-content-dynamically/#post-17527257)
 * Hi,
 * Okay. You could then maybe use `$table_ids = TablePress::$model_table->load_all(
   false, false );` to get a list of all TablePress table IDs, which you can then
   use in the template tag functions.
 * Best wishes,
   Tobias
 *  Thread Starter [baqsny](https://wordpress.org/support/users/baqsny/)
 * (@baqsny)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/get-table-content-dynamically/#post-17527360)
 * I coded what I wanted, but thanks for help 🙂
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/get-table-content-dynamically/#post-17530536)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
   Tobias
 * P.S.: In case you haven’t, please [rate TablePress in the plugin directory](https://wordpress.org/support/plugin/tablepress/reviews/#new-post).
   Thanks!

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

The topic ‘Get table content dynamically’ 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/)

 * 11 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/get-table-content-dynamically/#post-17530536)
 * Status: resolved