Mi sono appena iscritto e già chiedo aiuto.

Sto lavorando su un sito wordpress. Quelli con il portfolio creato con isotope. Di base la visualizzazione prende tutte le categorie ma io vorrei che già da subito ne visualizzasse una in particolare per poi filtrare con le altre.
Credo che isotope faccia solo il lavoro di filtraggio e che quindi il settaggio per discriminare la visualizzazione arrivi da PhP
il link del sito è questo: http://www.come-to.it/index.php
e la pagina che genera il codice presenta questo script
Codice: Seleziona tutto
<ul class="port-filter">
<!--li><a class="white-btn" data-filter="*" href="#">All</a></li-->
<?php
$taxonomy = 'portfolio_category';
$terms = get_terms($taxonomy); // Get all terms of a taxonomy
if ( $terms && !is_wp_error( $terms ) ) :
foreach ( $terms as $term ) { ?>
<li><a class="white-btn" data-filter=".<?php echo strtolower(preg_replace('/\s+/', '-', $term->name)); ?>" href="#">
<?php echo $term->name; ?></a></li>
<?php }
endif;?>
</ul>
<div class="row portfolio-body">
<!--PORTFOLIO LOOP START-->
<?php
$paged = 1;
if ( get_query_var('paged') ) $paged = get_query_var('paged');
if ( get_query_var('page') ) $paged = get_query_var('page');
$i = 0;
if ( function_exists( 'ot_get_option' ) && ot_get_option( [b]'portfolio_home'[/b] )) {
$ports = new WP_Query( array( 'post_type' => 'portfolio', 'paged' => $paged, 'posts_per_page' => ot_get_option( [b]'portfolio_home'[/b] ) ) );
} else {
$ports = new WP_Query( array( 'post_type' => 'portfolio', 'paged' => $paged, 'posts_per_page' => 6 ) ); }
while ( $ports->have_posts() ) : $ports->the_post();
// output ?>
<?php $terms = get_the_terms( get_the_ID(), 'portfolio_category' ); ?>
<div class="col-md-6 port-item <?php foreach ($terms as $term) { echo strtolower(preg_replace('/\s+/', '-', $term->name)). ' '; } ?>
<?php $allClasses = get_post_class(); foreach ($allClasses as $class) { echo $class . " "; } ?>" id="post-<?php the_ID(); ?>">
<div class="port-inner white-bg clearfix">
<!--get original featured image link-->
<?php
$image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full');
?>
<!-- apertura foto--> <!--a class="box-40 hovers bwWrapper" data-rel="prettyPhoto" href="<?php echo $image_url[0]; ?>"-->
<span class="box-40 hovers bwWrapper"><?php the_post_thumbnail('portfolio-image'); ?></span>
<!--/a-->
<!-- link view more--> <!--a class="more" href="#" data-link="<?php the_permalink(); ?>"><span class="hov-desc">View Detail</span><i class="fa fa-chain"></i></a-->
<div class="padding box-60">
<span>Come To</span>
<h3><?php the_title(); ?></h3>
<?php the_excerpt(); ?>
<?php if ( has_post_format( 'video' )) { ?>
<i class="cat-icon fa fa-film" data-link="<?php the_permalink(); ?>"></i>
<?php } else if( has_post_format( 'gallery' )) { ?>
<i class="cat-icon fa fa-picture-o" data-link="<?php the_permalink(); ?>"></i>
<?php } else if( has_post_format( 'audio' )) { ?>
<i class="cat-icon fa fa-headphones" data-link="<?php the_permalink(); ?>"></i>
<?php } else { ?>
<a class="cat-icon" data-link="<?php the_permalink(); ?>"><i class="fa fa-bookmark"></i><br />SCOPRI<br />di piu'</a>
<!--vecchia icona html5 --> <!--i class="cat-icon fa fa-html5" data-link="<?php the_permalink(); ?>"></i-->
<?php } ?>
</div><!--/.padding-->
</div><!--/.port-inner-->
</div><!--/.col-md-6-->
<?php
$i++; endwhile;
?>
Premetto che andando a modificare le parti del codice che ho evidenziato in bold con la categoria che voglio e cioè 'Le Proposte' effettivamente visualizzo solo quello che voglio. Ma poi non visualizza altre categorie quando vado a filtrarle
Qualcuno saprebbe aiutarmi per favore?
Grazie mille a tutti quanti