I have a Post Type in WP and a Menu with the list of the posts like this:
<ul class="menu2">
<?php
$query = new WP_Query( array( 'post_type' => array( 'comisarios' ) ) );
while ( $query->have_posts() ) : $query->the_post();
echo '<li ';
echo '><a href="';
the_permalink();
echo '">';
the_title();
echo '</a></li>';
endwhile;?>
</ul>
I wish to know how I can select the current post to add a text like 'class="selected"', to show it cheked in black or something.
Thanks!