And how do I filter results with SQL
You write a SQL SELECT statement, use the the wpdb object to execute it and apply the results to your dropdown. The SQL SELECT should only pull the values you want. There are plenty of examples to learn from in the knowledge base articles for the two hooks.
Please login or Register to submit your answer