Forums

[closed] How to display posts - my way (2 posts)

  1. ThorHammer
    Member
    Posted 3 years ago #

    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.

  2. moshu
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic