Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter shawty-lozzy

    (@shawty-lozzy)

    BUMP

    can someone help please 🙂

    for instance http://wordpress.org/support/topic/370882?replies=9

    if this does not help, paste the code of the template file that displays the front page (normally index.php) into a http://wordpress.pastebin.com/ and post the link to it here.

    Thread Starter shawty-lozzy

    (@shawty-lozzy)

    Dsnt seem to help

    here is the link http://wordpress.pastebin.com/Rj0WJrJE to my index.php page 🙂

    Post the code into the pastebin like alchymyth suggested and then paste it here, so we can take a look at it.

    @shawty-lozzy
    thanks for the pasted code.

    the code has quite a few loops, and i am not sure which of these is supposed to be paginated.
    if it is the loop just before the ‘next_posts_link();’ etc, then this query is using the ‘offset’ parameter which is not compatible with the ‘paged’ parameter.

    in this case, you need to find a different way to exclude the first post.
    (you might find some ideas in http://codex.wordpress.org/The_Loop )

    to confirm my assumption, it would help if you could post a link to the site to illustrate the posts that are to be paginated.

    as a first try, you could apply the solution of the thread i posted at the beginning to this line (and ignore duplicate posts for just now):
    replace this:

    <?php global $myOffset; $myOffset = 1; query_posts('offset='.$myOffset.'&paged='.$paged); while (have_posts()) : the_post(); ?>

    to this:

    <?php global $myOffset; $myOffset = 1;
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    global $query_string;
    query_posts($query_string."&paged=$paged");
    while (have_posts()) : the_post(); ?>

    let us know how you get on;
    good luck.

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

The topic ‘Page two is not working’ is closed to new replies.