Title: Use cell content as variable
Last modified: August 11, 2020

---

# Use cell content as variable

 *  Resolved [David181](https://wordpress.org/support/users/david181/)
 * (@david181)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/use-cell-content-as-variable/)
 * Hi there,
 * I want to reuse a value in a certain cell as a variable to create a link.
 * Example:
    Text A | Text B | Link
 * If Text A has the Value “year2020”, I want to reuse that as a variable to create
   the link “example.com/year2020”.
 * It’s not so much about the link, more about the idea of linking to a certain 
   cell and just have to change the value in one cell if needed.
 * Is there a way to use a value in the same table as a variable and reuse it in
   the same table?
 * Thanks!
    -  This topic was modified 5 years, 10 months ago by [David181](https://wordpress.org/support/users/david181/).

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/use-cell-content-as-variable/#post-13238853)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * I see what you mean, but unfortunately, I’m not aware of a solution for that 
   🙁
 * While there is a TablePress Extension that allows to retrieve a single cells 
   value, see [https://tablepress.org/extensions/table-cell-shortcode/](https://tablepress.org/extensions/table-cell-shortcode/),
   this will not work inside HTML code for a link. WordPress is preventing the evaluation
   of Shortcodes inside HTML code, for security reasons.
 * Regards,
    Tobias
 *  Thread Starter [David181](https://wordpress.org/support/users/david181/)
 * (@david181)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/use-cell-content-as-variable/#post-13242374)
 * Hi Tobias,
 * no worries, that’s fine. Therefore I just copy & paste, sometimes the manual 
   way is the most straight forward one.
 * Thanks and best,
    David
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/use-cell-content-as-variable/#post-13242419)
 * Hi David,
 * yes, that will be the process to use here then. Sorry for not having an easier
   solution.
 * Best wishes,
    Tobias

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

The topic ‘Use cell content as variable’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/use-cell-content-as-variable/#post-13242419)
 * Status: resolved