• Resolved pegasus_777

    (@pegasus_777)


    Am using this together with “Single Cell Content Shortcode” extension. Problem is
    I have a page that i want it to load from the table depending on a variable that is set by the page, any idea how?

    Instead of this:

    [table-cell id=123 row=3 column=3 /]

    I would like

    [table-cell id=123 row=$variableA column=3 /]

    And somewhere before that I can set

    $variableA = 1 or on another page, i set $variableA =2 it will load a different set of values.This way, its dynamic enough that all my pages can just change a variable and it will update the page contents accordingly.

    Any idea?

    https://ww.wp.xz.cn/plugins/tablepress/

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble, as well as for the late answer. As I was on vacation, I didn’t have a chance to reply earlier.

    For this, the best way is likely a custom page template in your theme, where you then use the TablePress template tag functions (see http://tablepress.org/documentation/ ) instead of the Shortcode. With that, you could fill that parameter with a variable.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Loading cells based on variableRows’ is closed to new replies.