diff --git a/includes/class-staff.php b/includes/class-staff.php index 76bac6e..3584393 100644 --- a/includes/class-staff.php +++ b/includes/class-staff.php @@ -42,7 +42,7 @@ public function __construct( $post_id ) { $this->ID = $post->ID; $this->name = $post->post_title; $this->title = get_post_meta( $post_id, 'staffer_staff_title', true ); - $this->bio = esc_attr( $post->post_content ); + $this->bio = apply_filters( 'the_content', $post->post_content ); $this->departments = wp_get_post_terms( $post_id, 'department' ); $excerpt = $post->post_excerpt; $this->excerpt = empty( $excerpt ) ? wp_trim_words( $post->post_content, 55 ) : $excerpt; @@ -58,4 +58,4 @@ public function __construct( $post_id ) { $this->youtube = get_post_meta( $post_id, 'staffer_staff_youtube', true ); $this->github = get_post_meta( $post_id, 'staffer_staff_github', true ); } -} \ No newline at end of file +} diff --git a/includes/class-staffer.php b/includes/class-staffer.php index ceb88f9..097ea0d 100644 --- a/includes/class-staffer.php +++ b/includes/class-staffer.php @@ -298,7 +298,7 @@ public function create_staff_page() { * @since 2.0.0 * @return string Markup for Staffer output */ - + public function build_staff_page() { //ob_start(); @@ -364,7 +364,33 @@ public function build_staff_page() { $output .= '
'; + $output .= '