Hi,
I'm using this bit of code to try and pull through a post with its title and content.
SELECT post_title post_content FROM $wpdb->posts WHERE post_type='%s' AND post_status='publish' ORDER BY ID ASC
The problem is that it is only pulling through the post title and not the content. If I delete 'post_title' or 'post_content' then the other will show, but i can't get them to work together.
I've tried using 'AND' and a comma between them but then it breaks.
Anyone help?