Title: Tablepress reference a cell on current row
Last modified: January 5, 2020

---

# Tablepress reference a cell on current row

 *  Resolved [aentee](https://wordpress.org/support/users/aentee/)
 * (@aentee)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/tablepress-reference-a-cell-on-current-row/)
 * I have installed the cell reference add on for tablepress. I have a click button
   in a column of every row on a table on button-click it executes some php code.
   I was wondering if there is a way to determine the “current row” i.e. the ROW
   of the cell that the user just clicked. So i can pull information from a cell
   on that row.
 * Thanks for any help you can provide.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/tablepress-reference-a-cell-on-current-row/#post-12296171)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Unfortunately, I’m not aware of a way to retrieve that row number in the PHP 
   code. You could maybe extract it (by counting) in your JavaScript code and then
   pass that number on to the PHP script.
 * Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Tablepress reference a cell on current row’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/tablepress-reference-a-cell-on-current-row/#post-12296171)
 * Status: resolved