- This topic has 1 reply, 2 voices, and was last updated 7 years, 3 months ago by
Steve.
Viewing 1 reply thread
-
AuthorPosts
-
-
October 29, 2014 at 10:45 am #2627
michaellautmanMemberI’m having trouble getting Help tabs to show up on my settings page for my custom post type. I’ve gone through the Demo, and replicated it appropriately (I think), but still no luck.
Here’s the code creating the CPT
add_filter('piklist_post_types', 'listing_post_type'); function listing_post_type($post_types){ $post_types['listing'] = array( 'labels' =>piklist('post_type_labels','Listings') ,'title' => __('Simple Business Listings') ,'public' => true ,'admin_body_class' => array ( 'listing-admin' ) ,'has_archive' => 'true' ,'capability_type' => 'post' // ,'taxonomies' =>'post_tags' ,'rewrite' => array( 'slug' => 'listing' ) ,'supports' => array( 'title', 'author' ,'revisions' ,'editor' , 'excerpt' ,'thumbnail' , 'comments' ) ,'status' => array( 'draft' => array( 'label' => 'Draft' ) ,'premium' => array( 'label' => 'Premium' ) ,'basic' => array( 'label' => 'Basic' ) ) ); return $post_types; }And here’s the code for my help page.
<?php/* Title: Using the Custom CSS Capability: manage_options Page: listing, listing_page, listing_page_directory_settings */ ?>Any suggestions?
Thanks -
November 4, 2014 at 11:53 am #2644
SteveKeymaster@michaellautman– Your code works for me. Make sure your help code is the /parts/help/ folder.
-
-
AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.