1
0
mirror of https://github.com/ulaulaman/eduinaf.git synced 2025-02-28 11:57:48 +01:00

Aggiunto codice che previene errore nei custom post type

This commit is contained in:
ulaulaman 2020-10-22 19:25:43 +02:00
parent 2561249dea
commit a4116276e9

View File

@ -110,6 +110,12 @@ function tabspeciali($atts) {
} }
} }
return $content; if ( get_post_type() == 'post' ) {
$out = $content;
} else {
$out = null;
}
return $out;
} }
add_shortcode( 'tabspeciali', 'tabspeciali' ); add_shortcode( 'tabspeciali', 'tabspeciali' );