• Hi everybody!
    Is there anyone who Knows how to select a number of posts from recent posts? I would like to do not show from the first to the 8th post.
    In my news articles i want to show 8 posts starting from 9th. Below is my code. How can i do? Thanks in advance for reply

    [please use the ‘code’ button to mark any posted code]

    <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    if ($myOptions['recent_cat']) {
    $category = $myOptions['recent_cat'];
    } else {
    $category = 0;
    }
    if ($myOptions['recent_posts']) {
    $posts = $myOptions['recent_posts'];
    } else {
    $posts = 8;
    }
    query_posts("cat=$category&paged=$page&posts_per_page=$posts");
    while ( have_posts() ) : the_post() ?>
  • The topic ‘how to select older post from recent post?’ is closed to new replies.