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

    I am using Choices. I would like to remove the Portfolio Entries from the Archive / Sitemap Page. I would like the section to be removed. Any help would be greatly appreciated.

    Thank you, Kathy

    #106350

    I think I put this in the wrong section. Sorry. It is late!

    #106351

    Hi,

    Open up template-archives.php and delete following code:

    /*
    * Display the latest 20 portfolio posts
    */

    query_posts(array('posts_per_page'=>8, 'post_type'=>'portfolio'));

    // check if we got posts to display:
    if (have_posts()) :
    echo avia_advanced_hr(false);

    $columns = 4;
    $rel_class = "one_fourth";
    $slidecount = 0;
    $postcount = ($columns * 1);
    $count = 1;
    $output = "";

    $output .= "<div class ='latest-portfolio-archive'>";
    $output .= "<h3>" . __('The 8 latest Portfolio Entries','avia_framework') . "</h3>";
    $output .= "<div class=' autoslide_false'>";

    while (have_posts()) : the_post();

    $slidecount ++;

    if($count == 1)
    {
    $output .= "<div class='single_slide single_slide_nr_$slidecount'>";
    }

    $image = "<span class='related_posts_default_image'></span>";
    $slides = avia_post_meta(get_the_ID(), 'slideshow', true);

    //check if a preview image is set
    if( $slides != "" && !empty( $slides[0]['slideshow_image']) )
    {
    //check for image or video
    if(is_numeric($slides[0]['slideshow_image']))
    {
    $image = avia_image_by_id($slides[0]['slideshow_image'], 'portfolio_small', 'image');
    }
    else
    {
    $image = "<span class='related_posts_default_image related_posts_video'></span>";
    }

    }

    $output .= "<div class='relThumb relThumb".$count." ".$rel_class."'>n";
    $output .= "<a href='".get_permalink()."' class='relThumWrap noLightbox'>n";
    $output .= "<span class='related_image_wrap'>";
    $output .= $image;
    $output .= "</span>n";
    $output .= "<span class='relThumbTitle'>n";
    $output .= "<strong class='relThumbHeading'>".avia_backend_truncate(get_the_title(), 50)."</strong>n";
    $output .= "</span>n</a>";
    $output .= "</div><!-- end .relThumb -->n";

    $count++;

    if($count == $columns+1)
    {
    $output .= "</div>";
    $count = 1;
    }

    endwhile;

    if($count != 1) $output .= "</div>";

    $output .= "</div></div>";
    echo $output;

    endif;

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

The topic ‘Remove Portfolio Entries from Choices Archive/Sitemap page’ is closed to new replies.