WordPress shortcode attributes for database SELECT?
Here’s the SQL query: $simplelist = $wpdb->get_results(“SELECT `Row1`, `Row2` FROM `table` WHERE `Row1` = ” . $atts[text] . ” ORDER BY `Row1` ASC”); Lets pretend we’re the computer and run it in our heads, and the first thing that happens is: $atts[text] // fatal error! text isn’t defined, you’re missing quotes, but lets fix that … Read more