How to enable Medium autoposting for Custom Post Types?
-
Hello, I need a piece of advice on how to turn Medium plugin on for custom post types. It works for me for Posts, but not for custom post types like Articles, News and so on.
These post types are created in the functions.php file like this:
register_post_type('article', array( 'labels' => array( 'name' => _x( 'Articles', 'post type general name', 'your-plugin-textdomain' ), 'singular_name' => _x( 'Article', 'post type singular name', 'your-plugin-textdomain' ), 'menu_name' => _x( 'Articles', 'admin menu', 'your-plugin-textdomain' ), 'name_admin_bar' => _x( 'Article', 'add new on admin bar', 'your-plugin-textdomain' ), 'add_new' => _x( 'Add New', 'book', 'your-plugin-textdomain' ), 'add_new_item' => __( 'Add New Article', 'your-plugin-textdomain' ), 'new_item' => __( 'New Article', 'your-plugin-textdomain' ), 'edit_item' => __( 'Edit Article', 'your-plugin-textdomain' ), 'view_item' => __( 'View Article', 'your-plugin-textdomain' ), 'all_items' => __( 'All Articles', 'your-plugin-textdomain' ), 'search_items' => __( 'Search Articles', 'your-plugin-textdomain' ), 'parent_item_colon' => __( 'Parent Articles:', 'your-plugin-textdomain' ), 'not_found' => __( 'No articles found.', 'your-plugin-textdomain' ), 'not_found_in_trash' => __( 'No articles found in Trash.', 'your-plugin-textdomain' ), ), 'public' => true, 'show_ui' => true, //'has_archive' => false, 'has_archive' => true, 'hierarchical' => false, 'delete_with_user' => false, 'supports' => array( 'title', 'editor', 'excerpt', 'revisions', 'publicize' ), 'rewrite' => array( 'slug' => 'articles', 'with_front' => false, ), )); register_taxonomy_for_object_type( 'category', 'article' );
Can I somehow use Medium plugin for this post type? OR there is no way to do it? Thank you!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to enable Medium autoposting for Custom Post Types?’ is closed to new replies.