From 045fa019ad68e944c1e0d26080b904386674595d Mon Sep 17 00:00:00 2001 From: ulaulaman <34242086+ulaulaman@users.noreply.github.com> Date: Thu, 3 May 2018 10:21:01 +0200 Subject: [PATCH] Modifica minore per correzione errore tabella --- incl/speciali.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/incl/speciali.php b/incl/speciali.php index 9ce8720..0111b0c 100644 --- a/incl/speciali.php +++ b/incl/speciali.php @@ -85,7 +85,7 @@ function specialishort($atts) { if ($nomespeciale <> $speciale) { $content = null; } else { $q = new WP_Query( array( 'speciali' => $speciale, 'posts_per_page'=>-1 ) ); - $content = '

'; + $header = '

Speciale '.$speciale.'
'; if ( $q->have_posts() ) { while ( $q->have_posts() ) { @@ -98,8 +98,7 @@ function specialishort($atts) { } $estratto = get_the_excerpt(); - $header = '
Speciale '.$speciale.'
'; - $content .= $header.'
'; + $content .= '
'; } $content = $content.'

'; /* ripristino */ @@ -107,6 +106,8 @@ function specialishort($atts) { } } + $content = '

'.$header.$content.'

'; + return $content; } add_shortcode( 'specialishort', 'specialishort' );