“Recent Posts” custom code
-
I’d like to add more pages that the ‘Recent posts’ appear on in sidebar…’is_archive’, etc, etc. ie all pages except the front (home) page!!
Currently code is:
<?php if (is_page() || is_single()) { ?>
-
<h2>Recent Posts</h2>
<ul class=”recentposts”>
<?php get_archives(‘postbypost’,’10’,’custom’,’ - ‘,’
‘); ?>
<?php } ?>
-
<h2>Recent Posts</h2>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘“Recent Posts” custom code’ is closed to new replies.