Hi im trying to echo single data from a custom table inside my wordpress database.
I found the code to print multiple columns. However I just want to print a single field, so my code looks like this:
global $wpdb; echo $wpdb->get_results( "SELECT * FROM table.column WHERE id = 1" );
Unfortunately it just prints the word ‘Array’
Read more here: Retrieve data from WordPress custom table using PHP