• Hi everyone,

    I’m currently trying to create a simple wp theme, and I’m facing a problem… I’m STUCK.
    Though I’m sure it’s nothing complicated, I’m trying to create a posts navigation, and I can’t…

    Here’s the idea: I want to display 3 posts of each category in gallery pages. Of course, I want to have a “next” button as soon as I publish a fourth post in that particular gallery.
    I tried to insert a navigation tag, which appears, but when I clic on next, it only reloads the page.
    Can anyone help me please ?

    Thank you sooooo much.
    Jon.

    Here’s my code:

    [code moderated - please follow the forum guidelines for posting code]

Viewing 3 replies - 1 through 3 (of 3 total)
  • try and add the ‘paged’ parameter to this line:

    query_posts('category_name=News&posts_per_page=3');

    example:

    query_posts('category_name=News&posts_per_page=3&paged='.get_query_var('paged'));
    Thread Starter ijon

    (@ijon)

    T H A N K Y O U !!!!
    Works perfectly.

    One little problem though: on second and third pages (when I click next, or previous), it doesn’t load the images I have in the footer… Do you know why ?

    And one other thing: would you have any idea on how to create some kind of sliding gallery in a single post? (if it is possible)

    Thanks again for your help…
    Jon.

    on second and third pages (when I click next, or previous), it doesn’t load the images I have in the footer… Do you know why ?

    difficult to comment on without seeing your site live.

    And one other thing: would you have any idea on how to create some kind of sliding gallery in a single post? (if it is possible)

    try and search the plugins
    (I haven’t had any need for this so far)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pagination & navigation’ is closed to new replies.