diff --git a/incl/speciali.php b/incl/speciali.php index 43dc95c..927b391 100644 --- a/incl/speciali.php +++ b/incl/speciali.php @@ -111,52 +111,3 @@ function tabspeciali($atts) { return $content; } add_shortcode( 'tabspeciali', 'tabspeciali' ); - -/* Deprecrato in attesa di capire come realizzare uno stile che eviti errori nella barra laterale */ - -#shortcode per mostrare in una tabella l'elenco degli articoli di uno speciale: da utilizzare in un widget di testo in attesa di creare un widget vero e proprio -function specialishort($atts) { - - global $post; - - extract( - shortcode_atts( - array( - 'speciale' => 'null', - ), - $atts - ) - ); - - #tutti i termini associati all'eventuale speciale associato al post - $term_list = wp_get_post_terms($post->ID, 'speciali', array("fields" => "all")); - #estrazione del nome dello speciale associato al post - $nomespeciale = $term_list[0]->name; - - if ($nomespeciale <> $speciale) { $content = null; } else { - $q = new WP_Query( array( 'speciali' => $speciale, 'posts_per_page'=>-1 ) ); - $header = '
'.$header.$content.'