• Resolved Symeon Mattes

    (@simeonmattes)


    Hi,

    I have the following problem

    In my home page I want to display on the header some posts, let’s say with ID = 5,10,13,30, and in the content of the page the rest ones.

    I looked the
    http://codex.ww.wp.xz.cn/Function_Reference/query_posts

    and I found out that I could exclude the header ids from “The Loop” by using

    query_posts( array( ‘post__not_in’ => array( 5,10,13,30)));

    This works fine for the first page without pagination. If I want to show older posts, i.e. for http://home_page/page/(number) I receive the same results as the ones of the first page.

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Influence the Loop’ is closed to new replies.