Wordpress PHP Help Please. Anyone?
<div id="primary">
<div id="content" class="clearfix">
<?php
$args = array( 'post_type' => 'Business', 'posts_per_page' => 10 );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
echo '<div class="businessentry-content">';
the_title();
the_content();
echo '</div>';
endwhile;
?>
</div><!-- #content -->
</div><!-- #primary -->
I wanted to add a link to the_title(); but when i add the <a> tag the page will turn to a blank page. What should be the correct code for it?
I also wanted to grab the images uploaded on each custom posts and display as thumbnails on the left side of the content. Is this possible? I really need to fix this. Thanks!
Robin
Try not to become a man of success, but rather try to become a man of value - Albert Einstein