diff --git a/didattica/shortcode.php b/didattica/shortcode.php deleted file mode 100644 index edd27ab..0000000 --- a/didattica/shortcode.php +++ /dev/null @@ -1,51 +0,0 @@ -'; - $title = '

'.get_the_title().'

'; - if ( has_excerpt ()) { - $excerpt ='
'.get_the_excerpt().'
'; - } else { - $excerpt = ''; - } - $date = ''; - $out = $header.$title.$date.$excerpt; - - return $out; -} ); - -add_shortcode( 'sidebar_didattica', function () { - - $img = '
'; - $terms = get_the_terms( $post->ID, 'livello_educativo' ); - $numcat=sizeof($terms); - foreach ( $terms as $term ) { - $term_link = get_term_link( $term, 'livello_educativo' ); - $img = $img.''; - } - - $type = null; - $terms = get_the_terms ( $post->ID, 'tipologia_contenuto' ); - $numcat=sizeof($term); - foreach ( $terms as $term ) { - $term_link = get_term_link( $term, 'tipologia_contenuto' ); - $type = $type.', '; - } - - $auth = null; - $terms = get_the_terms ( $post->ID, 'autore_didattico' ); - $numcat=sizeof($term); - foreach ( $terms as $term ) { - $term_link = get_term_link( $term, 'autore_didattico' ); - $auth = $auth.'di '; - } - - $out = $img.'

'.$type.' '.$auth.'

'; - - return $out; -} );