Custom post types
-
Hi, is there a way to add custom post type functionality? I’m trying to add this plugin to a portfolio display.
Thanks.
-
what you mean? It should work properly with custom post types.
Hello,
I have the same problem, I created some custom post types but the settings for the background don’t show on the backend page, and the default slides don’t show on the single custom post page anyways.
Do we have to add something to the code creating a custom post to enable the slider?
This is what I wrote :
function create_post_type_projet() { register_taxonomy_for_object_type('category', 'projet'); // Register Taxonomies for Category register_taxonomy_for_object_type('post_tag', 'projet'); register_post_type('projet', // Register Custom Post Type array( 'labels' => array( 'name' => __('Projets', 'projet'), // Rename these to suit 'singular_name' => __('Projet', 'projet'), 'add_new' => __('Add New', 'projet'), 'add_new_item' => __('Add New Projet', 'projet'), 'edit' => __('Edit', 'projet'), 'edit_item' => __('Edit Projet', 'projet'), 'new_item' => __('New Projet', 'projet'), 'view' => __('View Projet', 'projet'), 'view_item' => __('View Projet', 'projet'), 'search_items' => __('Search Projet', 'projet'), 'not_found' => __('No Projets found', 'projet'), 'not_found_in_trash' => __('No Projets found in Trash', 'html5blank') ), 'public' => true, 'hierarchical' => true, // Allows your posts to behave like Hierarchy Pages 'has_archive' => true, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', ), // Go to Dashboard Custom HTML5 Blank post for supports 'can_export' => true, // Allows export in Tools > Export 'taxonomies' => array( 'post_tag', 'category' ) // Add Category and Post Tags support )); }Cheers!
I had the same problem, in my case post type was “apartaments” and act like “page” but don’t know why plugin didn’t get it, so.. I fix it by myself
1. open easy-fullscreen-slider/settings_post
2. find (in my case line 19)public function efs_register_meta_box(){3. after
add_meta_box('efslider_meta_box', 'Easy Fullscreen Slider - Settings', array(&$this, 'efslider_meta_box'), 'page', 'normal');4. add (replace YOUR-CUSTOM-POST-NAME with your custom post type)
add_meta_box('efslider_meta_box', 'Easy Fullscreen Slider - Settings', array(&$this, 'efslider_meta_box'), 'YOUR-CUSTOM-POST-NAME', 'normal');5. that’s it. In my case plugin defaults wasn’t passed (to custom post), so check it before panic
Actually I found the solution to the problem.
You need to add
add_meta_box('efslider_meta_box', 'Easy Fullscreen Slider - Settings', array(&$this, 'efslider_meta_box'), null, 'normal');on the settings_post.php under public function efs_register_meta_box() on line 19 : so you get
public function efs_register_meta_box(){ add_meta_box('efslider_meta_box', 'Easy Fullscreen Slider - Settings', array(&$this, 'efslider_meta_box'), 'post', 'normal'); add_meta_box('efslider_meta_box', 'Easy Fullscreen Slider - Settings', array(&$this, 'efslider_meta_box'), 'page', 'normal'); add_meta_box('efslider_meta_box', 'Easy Fullscreen Slider - Settings', array(&$this, 'efslider_meta_box'), null, 'normal');Hope this can help, thanks for the awesome plugin!
The topic ‘Custom post types’ is closed to new replies.