How to display posts – my way
-
using 2.6.1. I have a custom theme showing my newest 14 posts (1-14)with images and so on. I want to display the title link for the older 10 posts (15-25). They are supposed to appear in a widget at the bottom of my site. I tried this:
<ul> <?php global $post; $myposts = get_posts('numberposts=10&offset=14'); foreach($myposts as $post) : ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> </ul>
but nothing happend. Please, could anyone help me with this tiny part of code. What is wrong?
—
Sorry for posting in “troubleshooting”, this post belongs here.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to display posts – my way’ is closed to new replies.