horizontal_logo-black
Viewing 0 reply threads
  • Author
    Posts
    • #6496
      Simon Brown
      Participant

      Hello,
      I’ve got the form to submit custom fields like ‘mobile’, ’email’, etc.
      I can see them in the submissions. When I review and approve them I see the new page in the custom post type (Clients) menu in WordPress admin but the custom fields aren’t showing.

      Do I need to do something with the ‘supports’ in the register_post_type array?

      add_action( ‘init’, ‘clients_post_type’ );
      function clients_post_type() {

      register_post_type( ‘clients’, array(
      ‘labels’ => array(
      ‘name’ => __(‘Clients’),
      ‘singular_name’ => __(‘Client’),
      ‘add_new_item’ => __(‘Add New Client’),
      ‘edit_item’ => __(‘Edit Client’),
      ‘new_item’ => __(‘New Client’),
      ‘view_item’ => __(‘View Client’),
      ‘search_items’ => __(‘Search Clients’),
      ‘not_found’ => __(‘No Client Found’),
      ‘not_found_in_trash’ => __(‘No clients found in Trash’)
      ),

      ‘description’ => ‘Represents a single Client in the header clientshow.’,
      ‘hierarchical’ => false,
      ‘menu_icon’ => ‘dashicons-images-alt2’,
      ‘menu_position’ => 2,
      ‘public’ => true,
      ‘exclude_from_search’ => true,
      ‘publicly_queryable’ => false,
      ‘rewrite’ => array( ‘slug’ => ‘clients’, ‘with_front’ => false ),
      ‘show_in_admin_bar’ => false,
      ‘show_in_nav_menus’ => true,
      ‘show_ui’ => true,
      ‘capability_type’ => ‘post’,
      ‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’, ‘excerpt’, ‘comments’, ‘custom-fields’, ‘post-formats’, ‘page-attributes’, ‘mobile’, ’email’),
      ));
      }

      Many thanks for any help.

Viewing 0 reply threads
  • You must be logged in to reply to this topic.