• Resolved frequentmiler

    (@frequentmiler)


    I’m using the Shortcode Filter from GET extension and it works fine. The only problem I have is that I want to default to displaying nothing when there is no filter in the URL (or if the filter doesn’t have a match). Currently it shows all rows when there is no match. Is there any way to do this? Alternatively I’d accept a solution where no-match results in just one set row showing up (that way i can set the contents of the row to “not found” or something like that).

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, you will basically have to modify the file tablepress-shortcode-filter-get-parameter.php with your own logic.

    For example, move the line

    	return tablepress_get_table( $attributes );
    

    one line up and instead put something like

    return "No filter word was entered.";
    

    in its current place.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Shortcode Filter from GET’ is closed to new replies.