Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( !empty($title) ) {
- // If there is a taxonomy set AND there is only one term selected for this widget...
- if ( $taxonomy != 'none' && 1 == count( $term ) ) {
- // output the widget title wrapped in a link to the single selected term.
- echo $before_title . '<a href="' . get_term_link( $term[0], $taxonomy ) . '">' . $title . '</a>' . $after_title;
- } else {
- // Otherwise just show the title without a link.
- echo $before_title . $title . $after_title;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement