Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. function custom_post_type()
  2. {
  3. $labels_frontpage = array(
  4. 'name' => 'Partners',
  5. 'name' => 'Services',
  6. );
  7. register_post_type('partners', array(
  8. 'labels' => $labels_frontpage,
  9. 'public' => true,
  10. 'has_archive' => true,
  11. 'publicly_queryable' => true,
  12. 'query_var' => true,
  13. 'rewrite' => true,
  14. 'capability_type' => 'post',
  15. 'hierarchical' => false,
  16. 'supports' => array(
  17. 'title',
  18. 'editor',
  19. 'excerpt',
  20. 'thumbnail',
  21. 'revisions',
  22. ),
  23. 'menu_position' => 7,
  24. 'exclude_from_search' => false,
  25. 'menu_icon' => 'dashicons-format-gallery',
  26. ));
  27. }
  28. add_action('init', 'custom_post_type');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement