Add [staff_profile] shortcode for backward compatibility with sites already using [staff]

This commit is contained in:
Brian Miyaji
2018-01-22 01:30:24 +11:00
parent c0f9d1838e
commit fd21316b23
4 changed files with 41 additions and 4 deletions

View File

@@ -19,10 +19,7 @@ class SP_Shortcode_Staff {
if ( ! isset( $atts['id'] ) && isset( $atts[0] ) && is_numeric( $atts[0] ) )
$atts['id'] = $atts[0];
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 );
}
}