Have similar problem, this test code doesnt work (called as shortcode):
$gh_query = new WP_Query('posts_per_page=10&category_name=techblog');
while ($gh_query->have_posts())
{
$gh_query->the_post();
$title = $gh_query->the_title_attribute("echo=0");
$output = $output.$title."<br>";
}
return $output;
Any ideas?