Grazie, questo è il codice:
Codice PHP:
<?php
$args = array(
'post_type' => $taxonomy_profile_url,
'meta_query' => array( array('key' => 'premium', 'value' => '0', 'compare' => '=', 'type' => 'NUMERIC') ),
'posts_per_page' => get_option("frontpageshownormalcols") * 5
);
$normal_profiles = new WP_Query( $args );
$i = "1";
if ($normal_profiles->have_posts()) :
while ( $normal_profiles->have_posts() ) : $normal_profiles->the_post();
include (get_template_directory() . '/loop-show-profile.php');
endwhile;
else:
_de('No %s here yet',29,$taxonomy_profile_name_plural);
endif;
wp_reset_postdata();
?>
Ho provato così ma nulla:
Codice PHP:
<?php
$args = array(
'post_type' => $taxonomy_profile_url,
'meta_query' => array( array('key' => 'premium', 'value' => '0', 'compare' => '=', 'type' => 'NUMERIC') ),
'posts_per_page' => get_option("frontpageshownormalcols") * 5
);
$premium_args = array(
'post_type' => $taxonomy_profile_url,
'meta_query' => array( array('key' => 'premium', 'value' => '1', 'compare' => '=', 'type' => 'NUMERIC') ),
'posts_per_page' => get_option("frontpageshownormalcols") * 5
);
$normal_profiles = new WP_Query( $args ); $normal_profiles = new WP_Query( $premium_args );
$i = "1";
if ($normal_profiles->have_posts()) :
while ( $normal_profiles->have_posts() ) : $normal_profiles->the_post();
include (get_template_directory() . '/loop-show-profile.php');
endwhile;
else:
_de('No %s here yet',29,$taxonomy_profile_name_plural);
endif;
wp_reset_postdata();
?>
Cosa sbaglio?