Post Type Entry
-
Hello
I have a plugin where I need to fill in the post type to be able to add a special button in the editor for the biography.
I don’t know if you’ll understand.
I’m using AddQuicktag plugin for add shortcodes buttons. This plugin works well with all post types like article, page, event, announcement, media… Except with entries.
I must to add a post type element like here :
// add custom function to filter hook 'addquicktag_post_types' add_filter( 'addquicktag_post_types', 'my_addquicktag_post_types' ); /** * Return array $post_types with custom post types * * @param $post_type Array * @return $post_type Array */ function my_addquicktag_post_types( $post_types ) { $post_types[] = 'post_entry'; return $post_types; }
I put post_entry but it doesn’t work in the editor.
Thanks for your help
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Post Type Entry’ is closed to new replies.