Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6542

    Through the following link to an active installation of CleanCut, the most recent 10 posts are seen from the ‘home’ page. Scroll down to the bottom and find page number links as well as a ‘next’ button. Clicking any of these should take you to previous posts, older than the most recent 10… doing so however just reloads the most recent 10, regardless of which link you click.

    Any ideas on how to get this working again?

    Also, how do I go about getting widgets to show up here in the Blogs right-side column? I’ve been through every option I can think of in the back-end with no luck.

    Thanks.

    #54589

    Whoops, forgot the link… hopefully that was what was holding up a response…

    > http://www.djikas.com

    #54590

    Hey,

    I’ll report it to Kriesi. I think it’s a pagination function problem – basically the cleancut blog isn’t layed out to be the frontpage/homepage and I think this triggers the flaw. As a quick fix I can only suggest to use wp-paginate: http://wordpress.org/extend/plugins/wp-paginate/ instead of Kriesi’s pagination function. Activate the plugin and in template_blog.php replace:

    kriesi_pagination($additional_loop->max_num_pages);

    with:

    if(function_exists('wp_paginate')) {
    wp_paginate();
    }else{
    kriesi_pagination($additional_loop->max_num_pages);
    }

    Update: You can also try to replace the Kriesi’s pagination code with an updated version. Open up cleancutframeworkhelper_functionspagination.php and delete all code lines. Then insert:

    <?php
    function kriesi_pagination($pages = ''){
    global $paged;

    if(get_query_var('paged')) {
    $paged = get_query_var('paged');
    } elseif(get_query_var('page')) {
    $paged = get_query_var('page');
    } else {
    $paged = 1;
    }

    $output = "";
    $prev = $paged - 1;
    $next = $paged + 1;
    $range = 2; // only edit this if you want to show more page-links
    $showitems = ($range * 2)+1;

    if($pages == '')
    {
    global $wp_query;
    $pages = $wp_query->max_num_pages;
    if(!$pages)
    {
    $pages = 1;
    }
    }

    if(1 != $pages)
    {
    $output .= "<div class='pagination'>";
    $output .= ($paged > 2 && $paged > $range+1 && $showitems < $pages)? "<a href='".get_pagenum_link(1)."'>«</a>":"";
    $output .= ($paged > 1 && $showitems < $pages)? "<a href='".get_pagenum_link($prev)."'>‹</a>":"";

    for ($i=1; $i <= $pages; $i++)
    {
    if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
    {
    $output .= ($paged == $i)? "<span class='current'>".$i."</span>":"<a href='".get_pagenum_link($i)."' class='inactive' >".$i."</a>";
    }
    }

    $output .= ($paged < $pages && $showitems < $pages) ? "<a href='".get_pagenum_link($next)."'>›</a>" :"";
    $output .= ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) ? "<a href='".get_pagenum_link($pages)."'>»</a>":"";
    $output .= "</div>n";
    }

    echo $output;
    }

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘A Problem Viewing Archived Posts + Blog Sidebar Widgets’ is closed to new replies.