Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // League Table Options
- $meta_boxes[] = array(
- 'id' => 'league_option',
- 'title' => __( 'League Table Data', 'footballonline' ),
- 'post_types' => array( 'football_league' ),
- 'context' => 'normal',
- 'priority' => 'high',
- 'autosave' => true,
- 'fields' => array(
- array(
- 'id' => "{$prefix}league_table_option",
- 'type' => 'group',
- 'clone' => true,
- 'sort_clone' => true,
- 'collapsible' => true,
- 'group_title' => 'Team {#}', // ID of the subfield
- 'save_state' => true,
- // Sub-fields
- 'fields' => array(
- array(
- 'name' => __( 'Team Name', 'footballonline' ),
- 'id' => "football_select_team",
- 'type' => 'post',
- 'post_type' => 'football_team' ,
- 'options' => array(
- 'type' => 'select_advanced',
- ),
- ),
- array(
- 'name' => __( 'Match Played ', 'footballonline' ),
- 'id' => "{$prefix}team_match_played_stat",
- 'type' => 'text',
- ),
- array(
- 'name' => __( 'Match Win ', 'footballonline' ),
- 'id' => "{$prefix}team_win_stat",
- 'type' => 'text',
- ),
- array(
- 'name' => __( 'Match Draw ', 'footballonline' ),
- 'id' => "{$prefix}team_draw_stat",
- 'type' => 'text',
- ),
- array(
- 'name' => __( 'Total Goal Scored ', 'footballonline' ),
- 'id' => "{$prefix}team_goal_scored",
- 'type' => 'text',
- ),
- array(
- 'name' => __( 'Total Goal Conceded', 'footballonline' ),
- 'id' => "{$prefix}team_goal_conceded",
- 'type' => 'text',
- ),
- ),
- ),
- ),
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement