Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #16801

    Hello,

    I have looking around on this forum but I can’t seem to find my answer so I’ll ask here and now. I’m simply trying to make my portfolio page just like the live demo however I’m busting my head trying to see why it’s not doing it. Here’s a screenshot of what I have so far

    http://imageshack.us/a/img195/6960/screenshot20121003at328.png

    I can’t get the thumbnails to show up at all. Can someone help me? It’s probably simple but for whatever reasons I can’t figure it out and setting up my portfolio is the last thing I need to do to finish my site up.

    Thanks

    #92903

    Hi Harruhsun,

    Can you post a link to your site? so we can check it further.

    Regards,

    Ismael

    #92904

    Ok here is the link.

    http://harruhsun.com/portfolio/

    I really like the set up of the live demo and that’s pretty much the last thing I need to make the site go completely live.

    Thanks

    #92905

    Hi Harruhsun,

    Did you change anything in wp-contentthemesangularincludesloop-portfolio.php? and can you post the content of your loop-portfolio.php, so I can compare it.

    Regards,

    Ismael

    #92906

    No I didn’t change anything in that php file. The only php file that I changed was for the copyright area

    #92907

    <?php

    /*

    * The Loop for portfolio overview pages. Works in conjunction with the file template-portfolio.php and taxonomy-portfolio_entries.php

    */

    global $avia_config;

    $avia_config = true;

    if(isset($avia_config)) { query_posts($avia_config); }

    $loop_counter = 1;

    // check if we got a page to display:

    if (have_posts()) :

    $extraClass = ‘first’;

    $style = ‘portfolio-entry-no-description’;

    $grid = ‘one_fourth’;

    $image_size = ‘portfolio’;

    switch($avia_config)

    {

    case “1″: $grid = ‘fullwidth’; $image_size = ‘fullsize’; break;

    case “2″: $grid = ‘one_half’; break;

    case “3″: $grid = ‘one_third’; break;

    case “4″: $grid = ‘one_fourth’; break;

    }

    $avia_config = $avia_config[0];

    if(!isset($avia_config)) $style = ‘portfolio-entry-description’;

    $includeArray = “”;

    if(isset($avia_config[0])) $includeArray = $avia_config[0];

    $args = array(

    ‘taxonomy’ => ‘portfolio_entries’,

    ‘hide_empty’=> 0,

    ‘include’ => $includeArray

    );

    $categories = get_categories($args);

    $container_id = “”;

    if(!isset($avia_config) || $avia_config == ‘yes’)

    {

    if(!empty($categories[0]))

    {

    $output = “<div id=’js_sort_items’ >”;

    $hide = “hidden”;

    if (isset($categories[1])){ $hide = “”; }

    $output .= “<div class=’sort_by_cat $hide ‘>”;

    $output .= ““.__(‘All’,'avia_framework’).”“;

    foreach($categories as $category)

    {

    $output .= “<span class=’text-sep “.$category->category_nicename.”_sort_sep’>/</span>category_nicename.”_sort’ class=’”.$category->category_nicename.”_sort_button’ >”.$category->cat_name.”“;

    $container_id .= $category->term_id;

    }

    $output .= “</div>”;

    $output .= “</div>”;

    echo $output;

    }

    }

    //portfolio container

    echo “<div class=’ajax-portfolio-response-wrapper’>”;

    echo “<div class=’ajax-control’><span>x</span><span>+</span><span>-</span></div>”;

    echo “<div class=’ajax-portfolio-response’></div>”;

    echo “</div>”;

    echo “<div class=’portfolio-sort-container “.$avia_config.”‘>”;

    //iterate over the posts

    while (have_posts()) : the_post();

    //get the categories for each post and create a string that serves as classes so the javascript can sort by those classes

    $sort_classes = “”;

    $item_categories = get_the_terms( $id, ‘portfolio_entries’ );

    if(is_object($item_categories) || is_array($item_categories))

    {

    foreach ($item_categories as $cat)

    {

    $sort_classes .= $cat->slug.’_sort ‘;

    }

    }

    if(!empty($avia_config)) $sort_classes .= ” ajax_portfolio”;

    ?>

    <div data-ajax-id=’<?php echo get_the_ID();?>’ class=’post-entry post-entry-<?php echo get_the_ID();?> flex_column all_sort no_margin <?php echo $sort_classes.’ ‘.$grid.’ ‘.$extraClass.’ ‘.$style; ?>’>

    <div class=’inner-entry’>

    <?php

    echo “<h1 class=’post-title portfolio-title’>”;

    echo “<span class=’primary-background title-span’></span>”;

    echo ““.get_the_title().”“;

    echo “</h1>”;

    $forceSmall = true;

    $slider = new avia_slideshow(get_the_ID());

    $slider -> setImageSize($image_size);

    if(!empty($avia_config)) $slider -> set_links(get_permalink());

    echo $slider->display($forceSmall);

    ?>

    </div>

    <!– end post-entry–>

    </div>

    <?php

    $loop_counter++;

    $extraClass = “”;

    if($loop_counter > $avia_config)

    {

    $loop_counter = 1;

    $extraClass = ‘first’;

    }

    endwhile;

    echo “</div>”; // end portfolio-sort-container

    if(!isset($avia_config ))

    {

    echo “<div class=’hr hr_invisible’></div>”;

    echo avia_pagination();

    }

    echo “<!– end –>”; //dont remove

    else:

    ?>

    <div class=”entry”>

    <h1 class=’post-title’><?php _e(‘Nothing Found’, ‘avia_framework’); ?></h1>

    <p><?php _e(‘Sorry, no posts matched your criteria’, ‘avia_framework’); ?></p>

    </div>

    <?php

    endif;

    unset($avia_config);

    ?>

    #92908

    Hi Harruhsun,

    Something is missing in your code, try to replace all the content of loop-portfolio.php with this code:

    <?php
    /*
    * The Loop for portfolio overview pages. Works in conjunction with the file template-portfolio.php and taxonomy-portfolio_entries.php
    */

    global $avia_config;
    $avia_config['avia_is_overview'] = true;

    if(isset($avia_config['new_query'])) { query_posts($avia_config['new_query']); }

    $loop_counter = 1;
    // check if we got a page to display:
    if (have_posts()) :

    $extraClass = 'first';
    $style = 'portfolio-entry-no-description';

    $grid = 'one_fourth';
    $image_size = 'portfolio';

    switch($avia_config['portfolio_columns'])
    {
    case "1": $grid = 'fullwidth'; $image_size = 'fullsize'; break;
    case "2": $grid = 'one_half'; break;
    case "3": $grid = 'one_third'; break;
    case "4": $grid = 'one_fourth'; break;
    }

    $avia_config['portfolio_columns_iteration'] = $avia_config['portfolio_columns'][0];
    if(!isset($avia_config['remove_portfolio_text'])) $style = 'portfolio-entry-description';

    $includeArray = "";
    if(isset($avia_config['new_query']['tax_query'][0]['terms'])) $includeArray = $avia_config['new_query']['tax_query'][0]['terms'];

    $args = array(

    'taxonomy' => 'portfolio_entries',
    'hide_empty'=> 0,
    'include' => $includeArray

    );

    $categories = get_categories($args);
    $container_id = "";

    if(!isset($avia_config['portfolio_sorting']) || $avia_config['portfolio_sorting'] == 'yes')
    {
    if(!empty($categories[0]))
    {
    $output = "<div id='js_sort_items' >";

    $hide = "hidden";
    if (isset($categories[1])){ $hide = ""; }

    $output .= "<div class='sort_by_cat $hide '>";
    $output .= "<a href='#' data-filter='all_sort' class='all_sort_button active_sort'>".__('All','avia_framework')."</a>";

    foreach($categories as $category)
    {
    $output .= "<span class='text-sep ".$category->category_nicename."_sort_sep'>/</span><a href='#' data-filter='".$category->category_nicename."_sort' class='".$category->category_nicename."_sort_button' >".$category->cat_name."</a>";
    $container_id .= $category->term_id;
    }

    $output .= "</div>";

    $output .= "</div>";

    echo $output;
    }
    }

    //portfolio container
    echo "<div class='ajax-portfolio-response-wrapper'>";
    echo "<div class='ajax-control'><a href='#' class='ajax-close'><span>x</span></a><a href='#' class='ajax-next'><span>+</span></a><a href='#' class='ajax-prev'><span>-</span></a></div>";
    echo "<div class='ajax-portfolio-response'></div>";
    echo "</div>";

    echo "<div class='portfolio-sort-container ".$avia_config['portfolio_hover']."'>";
    //iterate over the posts
    while (have_posts()) : the_post();

    //get the categories for each post and create a string that serves as classes so the javascript can sort by those classes
    $sort_classes = "";
    $item_categories = get_the_terms( $id, 'portfolio_entries' );

    if(is_object($item_categories) || is_array($item_categories))
    {
    foreach ($item_categories as $cat)
    {
    $sort_classes .= $cat->slug.'_sort ';
    }
    }

    if(!empty($avia_config['portfolio_ajax'])) $sort_classes .= " ajax_portfolio";

    ?>

    <div data-ajax-id='<?php echo get_the_ID();?>' class='post-entry post-entry-<?php echo get_the_ID();?> flex_column all_sort no_margin <?php echo $sort_classes.' '.$grid.' '.$extraClass.' '.$style; ?>'>

    <div class='inner-entry'>
    <?php

    echo "<h1 class='post-title portfolio-title'>";
    echo "<span class='primary-background title-span'></span>";
    echo "<a href='".get_permalink()."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".get_the_title()."'>".get_the_title()."</a>";
    echo "</h1>";

    $forceSmall = true;
    $slider = new avia_slideshow(get_the_ID());
    $slider -> setImageSize($image_size);
    if(!empty($avia_config['portfolio_ajax'])) $slider -> set_links(get_permalink());

    echo $slider->display($forceSmall);

    ?>
    </div>
    <!-- end post-entry-->
    </div>

    <?php

    $loop_counter++;
    $extraClass = "";

    if($loop_counter > $avia_config['portfolio_columns_iteration'])
    {
    $loop_counter = 1;
    $extraClass = 'first';
    }

    endwhile;

    echo "</div>"; // end portfolio-sort-container

    if(!isset($avia_config['remove_pagination'] ))
    {
    echo "<div class='hr hr_invisible'></div>";
    echo avia_pagination();
    }
    echo "<!-- end -->"; //dont remove
    else:
    ?>

    <div class="entry">
    <h1 class='post-title'><?php _e('Nothing Found', 'avia_framework'); ?></h1>
    <p><?php _e('Sorry, no posts matched your criteria', 'avia_framework'); ?></p>
    </div>
    <?php

    endif;

    unset($avia_config['avia_is_overview']);
    ?>

    Regards,

    Ismael

    #92909

    I put in the code and it still looks the same

    #92910

    Hi Harruhsun,

    I’m out of ideas as of now. Let me tag the rest of the support to check this issue.

    Regards,

    Ismael

    #92911

    Hi Harruhsun,

    Can you create a temporary admin account for me to take a look at how you have the portfolio items set up? It looks like there isn’t any images set with the Featured media so I’d look through the items you have set up now and see if that is the case.

    You can send the information to my email at DevinVinson (at) gmail.com. Make sure to include a link to this topic so that my spam filter doesn’t grab it :)

    Regards,

    Devin

    #92912

    Thanks for the help

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

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