diff --git a/incl/speciali.php b/incl/speciali.php index 166b1f1..0538719 100644 --- a/incl/speciali.php +++ b/incl/speciali.php @@ -33,13 +33,14 @@ function grigliaspeciali($atts) { extract( shortcode_atts( array( - 'speciale' => 'null', + 'speciale' => null, + 'tipo' => null, ), $atts ) ); - $q = new WP_Query( array( 'speciali' => $speciale, 'post_type'=> 'post', 'posts_per_page'=>-1 ) ); + $q = new WP_Query( array( 'speciali' => $speciale, 'post_type'=> $tipo, 'posts_per_page'=>-1 ) ); $contentblu ='
'; if ( $q->have_posts() ) {