Skip to content

Instantly share code, notes, and snippets.

@carmoreira
Created June 12, 2018 17:10
Show Gist options
  • Save carmoreira/3aad8be5b9b3d11c373d2623149e8f5e to your computer and use it in GitHub Desktop.
Save carmoreira/3aad8be5b9b3d11c373d2623149e8f5e to your computer and use it in GitHub Desktop.
Team Showcase Order
//Order for Fields
add_filter('tshowcase_content_order','my_tshowcase_content_order');
function my_tshowcase_content_order($tshowcase_fields){
$ts_content_order = array(
1 => 'title',
2 => 'groups',
3 => 'taxonomy',
4 => 'ctaxonomy',
5 => 'dtaxonomy',
6 => 'position',
7 => 'location',
8 => 'telephone',
9 => 'email',
10 => 'freehtml',
11 => 'website'
);
return $ts_content_order;
}
add_filter('tshowcase_table_content_order','my_tshowcase_table_content_order');
function my_tshowcase_table_content_order($tshowcase_fields){
$ts_content_order = array(
1 => 'title',
2 => 'groups',
3 => 'taxonomy',
4 => 'ctaxonomy',
5 => 'dtaxonomy',
6 => 'position',
7 => 'location',
8 => 'telephone',
9 => 'email',
10 => 'freehtml',
11 => 'website',
12 => 'social',
);
return $ts_content_order;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment