$args = array( 'post_type' => 'object', 'posts_per_page' => 10 );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
echo "<div class=\"item\"><a href=\"" . the_permalink() . "\">" . the_title() . "</a></div>";
endwhile;
This loop I have in WP is not echoing
<div class="item"><a href="#mylink">The name of my link</a></div>
but instead
#mylink The Name of my link
<div class="item"><a href=""></a></div>
Am I missing something trivial?