• Hi,

    I Have a Page Template (which basically just acts as a category front page) with the following Query:

    query_posts('category_name=name&posts_per_page=1');

    However whatever page I go onto it always shows the same 1 post !!

    Examples of the URL’s it’s giving are:

    myurl.com/page-name/page/2/
    myurl.com/page-name/page/3/

    These seem correct but it’s just showing the same page? Any ideas ?

    Thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter xdesi

    (@xdesi)

    OK Sorry I fixed it already ??

    $p = get_query_var('paged')
    query_posts('category_name=name&posts_per_page=1&paged=$p')

    I must pass the page number to the query.

    Thanks to the documentation ??

Viewing 1 replies (of 1 total)
  • The topic ‘Pagenation Not Working?’ is closed to new replies.