What is the propper syntax to grab data from all of the matching fields?
This example outputs only 1 of the matching fields:
$myvariable = "SELECT post_content
FROM wp_posts
WHERE post_name = 'testing'
AND post_status = 'publish'
AND post_type = 'post'";
echo = $myvariable;
You need to fetch an array of that query:
That will loop through the result list from the query and echo the post_content field value.
EDIT: Wow… Same thing, a few seconds late. Ha!