Advertisement
Guest User

Untitled

a guest
Feb 4th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. // League Table Options
  2. $meta_boxes[] = array(
  3. 'id' => 'league_option',
  4. 'title' => __( 'League Table Data', 'footballonline' ),
  5. 'post_types' => array( 'football_league' ),
  6. 'context' => 'normal',
  7. 'priority' => 'high',
  8. 'autosave' => true,
  9. 'fields' => array(
  10. array(
  11. 'id' => "{$prefix}league_table_option",
  12. 'type' => 'group',
  13. 'clone' => true,
  14. 'sort_clone' => true,
  15. 'collapsible' => true,
  16. 'group_title' => 'Team {#}', // ID of the subfield
  17. 'save_state' => true,
  18. // Sub-fields
  19. 'fields' => array(
  20.  
  21. array(
  22. 'name' => __( 'Team Name', 'footballonline' ),
  23. 'id' => "football_select_team",
  24. 'type' => 'post',
  25. 'post_type' => 'football_team' ,
  26. 'options' => array(
  27. 'type' => 'select_advanced',
  28. ),
  29.  
  30. ),
  31. array(
  32. 'name' => __( 'Match Played ', 'footballonline' ),
  33. 'id' => "{$prefix}team_match_played_stat",
  34. 'type' => 'text',
  35. ),
  36. array(
  37. 'name' => __( 'Match Win ', 'footballonline' ),
  38. 'id' => "{$prefix}team_win_stat",
  39. 'type' => 'text',
  40. ),
  41. array(
  42. 'name' => __( 'Match Draw ', 'footballonline' ),
  43. 'id' => "{$prefix}team_draw_stat",
  44. 'type' => 'text',
  45. ),
  46. array(
  47. 'name' => __( 'Total Goal Scored ', 'footballonline' ),
  48. 'id' => "{$prefix}team_goal_scored",
  49. 'type' => 'text',
  50. ),
  51. array(
  52. 'name' => __( 'Total Goal Conceded', 'footballonline' ),
  53. 'id' => "{$prefix}team_goal_conceded",
  54. 'type' => 'text',
  55. ),
  56.  
  57. ),
  58. ),
  59. ),
  60. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement