Aggiunto altro codice dimenticato e corretto errore di battitura

This commit is contained in:
ulaulaman 2021-04-10 17:41:48 +02:00
parent e88256e4ae
commit efcd2da1ac
1 changed files with 5 additions and 1 deletions

View File

@ -40,6 +40,10 @@ function grigliaspeciali($atts) {
) )
); );
if ( $tipo == null ) {
$tipo = 'post';
}
$q = new WP_Query( array( 'speciali' => $speciale, 'post_type'=> $tipo, 'posts_per_page'=>-1 ) ); $q = new WP_Query( array( 'speciali' => $speciale, 'post_type'=> $tipo, 'posts_per_page'=>-1 ) );
$contentblu ='<div class="divTable paleBlueRows">'; $contentblu ='<div class="divTable paleBlueRows">';
@ -79,7 +83,7 @@ function grigliaspeciali($atts) {
/* ripristino */ /* ripristino */
wp_reset_postdata(); wp_reset_postdata();
} else { } else {
$contenutoblu = null; $contentblu = null;
} }
return $contentblu; return $contentblu;