Obvious newbie question I'm sure. Working on a friend's site and trying to figure out how to add post_class to a query. Just adding works fine and adds the div, but I don't know how to get it to run the
"id="post-<?php the_ID(); ?>" <?php post_class(); ?>" part of it instead of echoing it.
$sidebar .= sprintf('<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>><p><span class="CityCountry">%s</span>' . chr(13),
I'm sure it's a formatting thing of some sort that I don't know yet... still so much to learn...