Change div to league and pos to position

This commit is contained in:
ThemeBoy
2013-12-26 06:26:55 +11:00
parent 05a80bb727
commit 3e99dc70a2
14 changed files with 93 additions and 93 deletions

View File

@@ -7,7 +7,7 @@ function sp_table_shortcode( $atts, $content = null, $code = "" ) {
'div' => 0
), $atts ) );
// Get all teams in the division
// Get all teams in the league
$args = array(
'post_type' => 'sp_team',
'numberposts' => -1,
@@ -16,7 +16,7 @@ function sp_table_shortcode( $atts, $content = null, $code = "" ) {
);
if ( $div ) {
$args['tax_query'][] = array(
'taxonomy' => 'sp_div',
'taxonomy' => 'sp_league',
'terms' => $div,
'field' => 'term_id'
);