Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #3635

    Hi,

    I have set up the theme with no problems until it comes to the portfolio section. I have set up the category to be displayed on the portfolio page and indeed it does display post which have the correct category. However It wont display any more images after 14 posts! I am using display large image in lightbox option. If I don’t add an image, just an excerpt then it will display the text but just for post 15 not any more. Basically it all goes pear after post 14.

    I can’t give you a login as it is on a local webserver and not live. Everything is fine except pagination doesn’t seem to want to work either but is the least of my worries. I really need to know why I can only add 14 images before it doesn’t work anymore.

    Thanks,

    Chris

    #43119

    Hi, Seems that it was an issue with my local web server. I made the site live and I didn’t have any problems adding more images.

    I do have one problem though. I cannot get pagenation to work on my portfolio. How do I get this to work?

    #43120

    Seems I have solved my issues by installing a third party plugin called wp-paginate.

    Replace kriesi_pagination($query_string); in template_portfolio.php with wp_paginate();

    After that it’s all good.

    Hope this helps someone else.

    Chris

    #43121

    Glad that you found a work around :)

    #43122

    I’m having problems with my portfolio page http://www.novavidanabarra.com.br/servicos-online/media-center/, does not appear the options to go to pages 2 or 3, even with 20 pages of the portfolio appears only 9 standard. already downloaded the original files again and I’ve uploaded, but the problem continues.

    #43123

    Hey,

    I’ll report it to Kriesi. A quick fix is to install this plugin: http://wordpress.org/extend/plugins/wp-paginate/

    Afterwards replace following code in template_portfolio.php:

    kriesi_pagination($query_string);

    with:

    wp_paginate();

    #43124

    the problem continues, follow the code of my page to see if something is wrong.

    http://www.novavidanabarra.com.br/servicos-online/media-center/

    <?php

    /*

    Template Name: Portfolio

    */

    global $k_option, $more;

    $k_option = “class=’fullwidth'”; //$k_option = “”;

    get_header();

    $more = 0;

    $posts_per_page = $k_option;

    $query_string =”posts_per_page=”.$posts_per_page;

    $query_string .= “&cat=”.$k_option[$post->ID].”&paged=$paged”;

    // the query string now looks like this:

    // “cat=3,10,12&posts_per_page=9&paged=$paged”;

    // you can add additional query options if you want, all of them are described here:

    // http://codex.wordpress.org/Template_Tags/query_posts#Examples

    // append this parameters with the “&” sign

    // example: $query_string = $query_string.”&orderby=author&order=ASC”;

    query_posts($query_string);

    ?>

    <div id=”main” >

    <div id=”content” >

    <?php

    $boxnumber = 1;

    if (have_posts()) :

    while (have_posts()) : the_post();

    $more = 0;

    // check if we got a previe picture, and which one should be taken

    // (image resizing with “tim thumb” on? then we can take the big one and resize it)

    $preview_small = get_post_meta($post->ID, “_preview_small”, true);

    $preview_medium = get_post_meta($post->ID, “_preview_medium”, true);

    $preview_big = get_post_meta($post->ID, “_preview_big”, true);

    //defaults:

    $preview = $preview_small;

    $link_url = $preview_big;

    $lightbox = ‘boxes';

    $link = true;

    //change if necessary:

    // resizing? => take next sized picture

    if ($k_option == “1” && $preview_small == “”)

    {

    $preview = $preview_medium != ” ? $preview_medium : $preview_big;

    }

    if (!kriesi_is_file($preview_big,’image’))

    {

    $preview = $preview_small != ” ? $preview_small : $preview_medium;

    $link_url = $preview_big;

    }

    // no bigpicture? => no lightbox

    if ($preview_big == “” || $k_option == 2) { $lightbox = ”; $link = true; $link_url = get_permalink(); }

    // the kriesi_build_image function used here checks if the image should be resized.

    // the function is located in framework/helper_functions

    $preview = kriesi_build_image(array(‘url’=>$preview,

    ‘height’=> ‘124’,

    ‘width’=> ‘280’,

    ‘lightbox’=>$lightbox,

    ‘link’=>$link,

    ‘link_url’=>$link_url

    ));

    if ($boxnumber == 1) echo ‘<div class=”entry portfolio_entry”>'; ?>

    <div class=”box box_small box<?php echo $boxnumber; ?>”>

    <?php echo $preview; // echo the preview image ?>

    <h3 id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></h3>

    <?php the_excerpt(); // small excerpt of the post content ?>

    ” class=”more-link”>Assista

    </div>

    <?php

    if ($boxnumber == 3) echo ‘</div>';

    $boxnumber = $boxnumber == 3 ? ‘1’ : $boxnumber + 1;

    endwhile;

    if($boxnumber != 1){

    echo ‘</div>';

    }

    wp_paginate();

    else:

    ?>

    <div class=”entry”>

    <h2>Nada Encontrado</h2>

    <p>Desculpe, tente outra palavra na busca.</p>

    </div>

    <?php

    endif;

    ?>

    </div><!– end content –>

    <?php get_sidebar(); ?>

    </div><!–end main–>

    <?php

    get_footer(); ?>

    #43125

    The pagination seems to work right – this page: http://www.novavidanabarra.com.br/servicos-online/media-center/ showsother portfolio items like this one: http://www.novavidanabarra.com.br/servicos-online/media-center/page/2/ – the pagination buttons appear for me at the bottom. Did you solve the problem? Maybe it’s just a css error.

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

The topic ‘Portfolio problems’ is closed to new replies.