First, it spits out the actual permalink instead of the Title Link
Secondly, after the permalink it spits out the Title but it disregards all the <h1>/<h4> tag styling, and the title is not a link, which it should be.
Wow it actually displays the content correctly. The Title link supposed to render <h1>/<h4> style but it does not, of course.
Please help because I have serious problems with PHP.
Code: Select all
<?php
$recent = new WP_Query("cat=1&showposts=6");
$i = 0;
while($recent->have_posts()) : $recent->the_post();
if($i == 0){
echo '<h1><a href="';
the_permalink();
echo '" rel="bookmark">'.the_title().'</a></h1>';
if (function_exists('the_content_limit')){
the_content_limit(195, "<span class='read-more'>Read more »</span>");
}
}else{
echo '<h4><a href="';
the_permalink();
echo '" rel="bookmark">'.the_title().'</a></h4>';
the_content_limit(130, "");
echo '<div class="hppostmeta">';
echo '<p>'.the_time('F j, Y').' | <a href="';
the_permalink();
echo '" rel="bookmark">Read the story »</a></p>';
echo '</div>';
}
echo '<div style="clear:both;"></div>';
$i++;
endwhile; ?>