Viewing 1 reply thread
  • Author
    Posts
    • #3153
      azizultex
      Member

      Hi there,
      I am registering a new post type. I added add_theme_support('post-thumbnails'); and `add_filter(‘piklist_post_types’, ‘worksfire_post_type’);
      function worksfire_post_type($post_types)
      {
      $post_types[‘staff’] = array(
      ‘title’ => __(‘Enter Custom Title’)
      ,’labels’ => piklist(‘post_type_labels’, ‘Staff’)
      ,’public’ => true
      ,’rewrite’ => array(
      ‘slug’ => ‘staff’
      )
      ,’menu_icon’ => ‘dashicons-groups’
      ,’page_icon’ => ‘dashicons-groups’
      ,’supports’ => array(
      ‘author’
      ,’thumbnail’
      ,’title’
      ,’editor’
      ,’custom-fields’
      )
      ,’edit_columns’ => array(
      ‘title’ => __(‘Staff Name’)
      )
      ,’hide_meta_box’ => array(
      ‘slug’
      ,’author’
      ,’revisions’
      ,’comments’
      ,’commentstatus’
      )
      );

      return $post_types;
      }`

      but I can’t see the featured image upload field. Am I doing anything wrong?

      Thanks

    • #3154
      Steve
      Keymaster

      @azizultex– This is working for me. Try WP_debug to see if there are any errors.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.