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:
parent
2561249dea
commit
a4116276e9
@ -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' );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user