• Is it possible to use the filter extension in the template tag?

    Something like:
    <?php wp_table_reloaded_print_table( “id=1&use_tablesorter=true&filter=apartment1” ); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, this should work. The template tag and the Shortcode accept the same parameters.

    Regards,
    Tobias

    @tobias thank u for the awesome plugin made my life easy……….

    @thedesigner thank you for this snippet.

    heres another snippet for you from an earlier discussion.

    But i think it is not working if we add the word2 in the filter too
    i.e. (b)

    <?php
    echo do_shortcode( '[table id=123 filter="a&&b" /]' );
    ?>
    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, the two word filter might now work in this way, because it is not run through a different filter. You might try this instead (with & replaced by & amp;):

    <?php
    echo do_shortcode( '[table id=123 filter="a& amp;& amp;b" /]' );
    ?>

    (Without the space in & amp;, which I had to insert here, because the forums keep replacing the string with a regular & all the time…)

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Filter in template tag’ is closed to new replies.