Viewing 4 replies - 1 through 4 (of 4 total)
  • I have the same problem. Any solution?

    I was having the same problem and found this post:
    https://www.ads-software.com/support/topic/221179?replies=4

    I added this tag <?php wp_link_pages(); ?> to my index.php and page.php files and page nummbering appeared. Just adding a plugin did not work for me either.
    Hope this helps

    I found a fix for the pagination of this theme. You can download my index.php file from the theme at my website.

    Magazeen Pagination Fix

    hey ryan, i couldn’t get your code to work for me, but i had already moded and hacked it to the point that it’s barely recognizable any more. what i did though was something like this, in case anyone else wants an alternate method. this actually works for pagination on any custom loop with query_posts. In the case of magazeen there are three queries with interdependent offsets, so it’s math based on page number. i am not really a “coder” but i can make stuff work, so this may not be neat or elegant.

    The code below determines what page you’re on and sets the offset as a variable based on the formula (pagenumber – 1) * n + y where n is number of posts you have on your page and y is the offset for each query in relation to the first post.

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $newpaged = $paged-1;
    $pagedi = strval($newpaged) * 11;
    settype($pagedi, "integer");
    query_posts( 'showposts=3&offset='.$pagedi );
    if (have_posts()) : while (have_posts()) : the_post(); $category = get_the_category();
    ?>
    
    //stuff here
    
    <?php
    endwhile;
    endif;
    ?>
    
    <?php
    $pagedj = $pagedi +3;
    query_posts( 'showposts=4&offset='.$pagedj );
    if (have_posts()) : $counter = 0;
    while (have_posts()) : the_post(); $category = get_the_category();
    
    if( $counter % 2 == 0 )
    $end = "";
    else
    $end = "last";
    ?>
    
    //stuff here
    
    <?php
    $counter++;
    endwhile;
    endif;
    ?>
    
    <?php
    $pagedk = $pagedi+7;
    query_posts( 'showposts=5&offset='.$pagedk );
    if (have_posts()) :
    while (have_posts()) : the_post(); $category = get_the_category();
    ?>
    
    //stuff here
    
    <?php
    endwhile;
    endif;
    ?>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP Magazeen Theme Pagination’ is closed to new replies.