Doesn’t support custom post type
-
Hi I’m designing my first wordpress theme for my website and I want to use your plugin. I have a custom post type:
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'vmoh_user_stories', array( 'labels' => array( 'name' => __( 'Stories' ), 'singular_name' => __( 'Story' ) ), 'public' => true, 'has_archive' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-book-alt', 'supports' => array('title', 'editor', 'author', 'comments', 'front-end-editor'), 'taxonomies' => array('category') ) ); }
But your plugin doesn’t work with this post type.
I have also tried this code:add_post_type_support( 'Stories', 'front-end-editor' );
but still doesn’t work..
It works with ‘post’ s but not with ‘vmoh_user_stories’
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Doesn’t support custom post type’ is closed to new replies.