• Hello.

    I’m building what will eventually be a fairly large table. It currently has 8 columns and 31 rows, but I expect it will have hundreds of rows before I am done.

    I’m using the short code to include the entire table on a single WP page, but I’d like to split the data up a bit further. Many of the rows correspond to particular tags on my site, and I’d like to include that related data on that particular tag page.

    I see how to modify the short code to call a particular row, but as my table grows, the appropriate row will certainly change as I resort the table. Is there a way to lock it to a particular record in the table?

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    sorry, no that is not possible, the row parameter that you have already found does not have a connection to the content of the table (so it will never know that you maybe moved a row). It only knows the row number.

    You might want to take a look at the Filtering Extension from my website though (https://tobias.baethge.com/2010/03/extension-6-showing-only-rows-that-match-a-filter/).
    With that, you could do the following: Add another column to your table and hide it (using the checkbox and button on the “Edit” screen), so that it will not appear when the table is shown on a page.
    Then use the “filter” parameter (which the Extension will add to the Shortcode) with the tag from your tag page as the filter value. With that, only those rows from your table which contain the tag in that new tag column will be shown in the table. This method is then independent from where the row is in the table, so you can move it however you want. (In other terms, this basically means that you no longer select the desired words by row number, but by the filter word from a new (hidden) column.)

    Best wishes,
    Tobias

    Thread Starter Brian Combs

    (@bpcombs)

    Thanks. Now if I can just get shortcodes to work in my tag descriptions, I’ll be set! ??

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I’m not an expert in that area, but you might want to look into creating a template file for the tags page. There, find out the “tag” that actually brought you there from the URL and then use that in the argument of the Shortcode. Well, acutally not the Shortcode, but the WP-Table Reloaded template tag function wp_table_reloaded_print_table(), which is the PHP equivalent to the Shortcode.

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Referring to Particular Rows’ is closed to new replies.