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

@@ -23,7 +23,7 @@ class SP_Meta_Box_Staff_Shortcode {
<p class="howto">
<?php _e( 'Copy this code and paste it into your post, page or text widget content.', 'sportspress' ); ?>
</p>
<p><input type="text" value="<?php sp_shortcode_template( 'staff', $post->ID ); ?>" readonly="readonly" class="code widefat"></p>
<p><input type="text" value="<?php sp_shortcode_template( 'staff_profile', $post->ID ); ?>" readonly="readonly" class="code widefat"></p>
<?php
}
}