Headache on this theme regarding some code.
-
Hi All,
Getting a headache on this one.
This my site. I am trying to get the “more” section to display an excerpt, just like the “popular posts” section does. It is only showing blanks, but when looking at the page source code it shows the text is there. Theme is Technical Speech.
The code for this area is:
<div class=”contentbox”>
<div class=”boxheading”><span>Most Popular</span><div class=”clear”></div><div class=”left”></div></div>
<div class=”blockborder” id=”pop_border”>
<?php popularPosts(); ?>
<div class=”clear”></div>
</div>
</div><div class=”contentbox”>
<div class=”boxheading”><span>More</span><div class=”clear”></div><div class=”left”></div></div>
<div class=”blockborder” id=”pop_border”>
<?php
$postslist = get_posts(‘numberposts=6&order=DSC&orderby=date’);
foreach ($postslist as $post):
setup_postdata($post);
?><div class=”postblock”>
<div class=”postblockwrap”>
<h6>” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></h6>“
class=”readmorelink”>Read More</div>
</div><?php endforeach; ?>
I have added Bold to the main part of the code for this, and Italic to the area which I believe could be the area that needs changing. I have tried get_posts etc.. but to no avail.
Look forward to any input on this one. Thanks in advance.
The topic ‘Headache on this theme regarding some code.’ is closed to new replies.