Using Shortcodes to search a database

I have a question about shortcodes and search forms. On my website there are shortcodes used to display an external database (not the wordpress database). Now I would like to add a search form which can search the database and display the results accordingly (in the same style as before).

My Idea: I just use the previously programmed shortcodes that display the database and only alter the sql query. But for this I would need to pass the input from the search form somehow to the php code behind the Shortcodes. How can I do that ? Is it somehow in the $atts ?

I am new to wordpress php and shortcodes.

In advance thanks a lot for your help!

Best,
Benny

Read more here:: Using Shortcodes to search a database

Leave a Reply

Your email address will not be published. Required fields are marked *