• I have a directory of names, phone numbers and email addresses.
    Is there a way to use cdbt-view so that no data shows until the front-end user enters something in the search field? I don’t want the full list to be displayed, only search results.
    And is there a way to limit the search so that only specified columns (first name and last name) are searchable?

    https://www.ads-software.com/plugins/custom-database-tables/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ka2

    (@ka2)

    Thank you for your inquiry.

    If you can prepare the function of getting the user’s search value, you can dynamically generate a shortcode by using the filter hook and its value.

    I introduce the sample code to dynamically generate a shortcode from PHP using the GET values.

    https://gist.github.com/ka215/e3b97bae49056e5e827efb6358b35e68

    Also, you will be able to perform that by same filter hook if you want to limit to any searching columns.

    Thank you,

    erpreet

    (@erpreet)

    Can you please explain it in more detail

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A way to show data only after search?’ is closed to new replies.