diff --git a/.gitignore b/.gitignore index e106a1b4..d383a8c5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .htaccess *.log -.DS_STORE \ No newline at end of file +.DS_STORE +.idea/ \ No newline at end of file diff --git a/includes/shortcodes/class-sp-shortcode-staff.php b/includes/shortcodes/class-sp-shortcode-staff.php index 33db0a99..743bd0cf 100644 --- a/includes/shortcodes/class-sp-shortcode-staff.php +++ b/includes/shortcodes/class-sp-shortcode-staff.php @@ -19,7 +19,10 @@ class SP_Shortcode_Staff { if ( ! isset( $atts['id'] ) && isset( $atts[0] ) && is_numeric( $atts[0] ) ) $atts['id'] = $atts[0]; - sp_get_template( 'staff-photo.php', $atts ); + sp_get_template( 'staff-header.php', $atts ); + sp_get_template( 'staff-photo.php', $atts ); sp_get_template( 'staff-details.php', $atts ); + sp_get_template( 'staff-excerpt.php', $atts ); + sp_get_template( 'staff-content.php', $atts ); } } diff --git a/templates/staff-content.php b/templates/staff-content.php new file mode 100644 index 00000000..5407acf1 --- /dev/null +++ b/templates/staff-content.php @@ -0,0 +1,23 @@ +post_content; +if ( $content ) { + ?> +