No, proverò a disattivarlo ed attivarlo nuovamente, vediamo cosa succede...
Lato frontend non dovrei modificare nulla, giusto?
<?php
// Setup tax query if needed
if ( wpex_get_data('home_port_cat') !== '' && wpex_get_data('home_port_cat') !== 'All' ) {
$wpex_tax_query = array(
array (
'taxonomy' => 'portfolio_category',
'field' => 'slug',
'terms' => wpex_get_data( 'home_port_cat' )
)
);
} else { $wpex_tax_query = NULL; } ?>
<?php $wpex_port_query = new WP_Query(
array(
'post_type' => 'portfolio',
'showposts' => wpex_get_data( 'home_port_count', '4' ),
'no_found_rows' => true,
'tax_query' => $wpex_tax_query
)
);
if( $wpex_port_query->posts ) { ?>
<section id="home-projects" class="clearfix">
<?php if ( wpex_get_data( 'home_port_heading', '1' ) == '1' ) { ?>
<h2 class="heading"><span><?php echo wpex_get_data('home_port_heading_txt', __( 'Recent Work', 'wpex' ) ); ?></span></h2>
<?php } ?>
<?php $wpex_count=0; ?>
<?php foreach( $wpex_port_query->posts as $post ) : setup_postdata( $post ); ?>
<?php $wpex_count++; ?>
<?php get_template_part( 'content', 'portfolio' ); ?>
<?php if( $wpex_count == '4' ) $wpex_count=0; ?>
<?php endforeach; ?>
</section><!-- /home-projects -->
<?php } ?>