SHARE
TWEET

Untitled

a guest Apr 12th, 2014 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #### Add a custom Post Type to Host Facebook comments
  2. $labels = array(
  3.     'name' => _x('Facebook', 'post type general name'),
  4.     'singular_name' => _x('Facebook', 'post type singular name'),
  5.     'all_items' => __( 'All posts' ),
  6.     'add_new' => _x('Add new post', 'Facebook'),
  7.     'add_new_item' => __("Add new Facebook post"),
  8.     'edit_item' => __("Edit Facebook post"),
  9.     'new_item' => __("New Facebook post"),
  10.     'view_item' => __("View Facebook posts"),
  11.     'search_items' => __("Search in Facebook posts"),
  12.     'not_found' =>  __('No facebook posts found'),
  13.     'not_found_in_trash' => __('No facebook posts found in trash'),
  14.     'parent_item_colon' => ''
  15.   );
  16. //$post_supports = array('title','editor','comments','thumbnail','excerpt');
  17. $post_supports = array('title','editor','thumbnail');
  18. $args = array(
  19.     'labels' => $labels,
  20.     'public' => true,
  21.     'publicly_queryable' => true,
  22.     'show_ui' => true,
  23.     'query_var' => true,
  24.     //'menu_icon' => get_stylesheet_directory_uri() . '/images/slider.png',
  25.     'rewrite' => true,
  26.     'capability_type' => 'post',
  27.     'hierarchical' => false,
  28.     'menu_position' => null,
  29.     'supports' => $post_supports
  30.   );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top