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 #1476506
Displaying data depending upon a date field - 2
Closed

Comments

  •  1
    RiverboatCaptain started the conversation

    Hi,

    I have been experimenting with the conditional filter, so that if a date in a cell is in the past (i.e. < %TODAY%), I can add a CSS class to that row, and make the row invisible by making that class "display: none;"

    If I set the table to initially show All rows, this works fine.

    But my table is large, so I need to set it to show 25 rows with pagination. Here is the full table with no filter:

    http://newzealandcruiseassociation.com/schedule/

    I made a filter which says if Arrival < %TODAY%, set CSS class to 'gone' and do not display that class.

    When I apply the filter, this gives pages where no rows show. If I paginate through them, I eventually reach "today", and the rows start to show again. Here is another table, showing what happens.

    http://newzealandcruiseassociation.com/time-test/

    If you go through the pagination, you will eventually reach the data from %TODAY% and afterwards (it's page 24)

    Is there a way to have the data from %TODAY% and afterwards show when the table loads on the page, so I can keep the pagination of 25 rows?

    Kind regards

    Keith



  •  472
    Isidora replied

    HI Keith,
    Thank you for your purchase.

    Unfortunately, there is no such a option with built in features of plugin, but you can set option Use as default sorting column on SORTING tab in column settings for that date column and set option Default sorting direction to Descending order.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables