As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #3767065
filtering table on wordpress post
Closed

Comments

  • Jonah started the conversation

    I am confused as to how I would filter the output of the table.  I only want to display results on this post for where the Sector column contains "Electricity"

    I entered this is Placeholder variable 1
    SELECT * FROM my_table WHERE Sector LIKE '%Electricity%';

    Gutenberg embedded the following in my post.

    [wpdatatable id=23 table_view=regular var1=SELECT * FROM my_table WHERE Sector LIKE '%Electricity%';]

  •   Miloš replied privately
  • Jonah replied

    I think I am explaining my problem poorly.  I have an Google Sheets based table which I imported.

    One of the columns in the sheet is "Sector".

    I have different posts on the site that need to display different sectors.

    How do I filter a single table to display a a different sector on each page in a site using Gutenberg?