Title: codyred's Replies | WordPress.org

---

# codyred

  [  ](https://wordpress.org/support/users/codyred/)

 *   [Profile](https://wordpress.org/support/users/codyred/)
 *   [Topics Started](https://wordpress.org/support/users/codyred/topics/)
 *   [Replies Created](https://wordpress.org/support/users/codyred/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/codyred/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/codyred/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/codyred/engagements/)
 *   [Favorites](https://wordpress.org/support/users/codyred/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Medium] Custom post type](https://wordpress.org/support/topic/custom-post-type-136/)
 *  [codyred](https://wordpress.org/support/users/codyred/)
 * (@codyred)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/custom-post-type-136/#post-8381177)
 * So After a couple hours of playing around I found a fix to add support for custom
   post types.
    In the plugin folder : Medium->lib->medium-admin.php a few lines
   need to be changed.
 * Line 46 :
    `add_action("add_meta_boxes_post", array("Medium_Admin", "add_meta_boxes_post"));`
   Needs to be changed to : `add_action("add_meta_boxes", array("Medium_Admin", "
   add_meta_boxes_post"));` *the action “add_meta_boxes_post” obviously only fires
   on the “post” post type.
 * Line 290 :
    `WHERE p.post_type = 'post'` You will need to add a AND your post
   type line, so mine ended up looking like :
 *     ```
       WHERE p.post_type = 'post'
       AND p.post_type = 'courses'
       ```
   
 * * This will allow for CPT migration
 * On line 456
    `add_meta_box("medium", "Medium", array("Medium_Admin", "meta_box_callback"),
   null, "side", "high");` Will need to change “null” to an array of values, so 
   mine looked like : `add_meta_box("medium", "Medium", array("Medium_Admin", "meta_box_callback"),
   array("courses","post"), "side", "high");`
 * And finally on line 468 :
    `$allowed_post_types = apply_filters("medium_allowed_post_types",
   array("post"));` Needs to be updated with all the post types you need, so mine
   looked like: `$allowed_post_types = apply_filters("medium_allowed_post_types",
   array("post","courses"));`
 * Hopes that helps
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Medium] How to enable Medium autoposting for Custom Post Types?](https://wordpress.org/support/topic/how-to-enable-medium-autoposting-for-custom-post-types/)
 *  [codyred](https://wordpress.org/support/users/codyred/)
 * (@codyred)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/how-to-enable-medium-autoposting-for-custom-post-types/#post-8381173)
 * So After a couple hours of playing around I found a fix to add support for custom
   post types.
    In the plugin folder : Medium->lib->medium-admin.php a few lines
   need to be changed.
 * Line 46 :
    `add_action("add_meta_boxes_post", array("Medium_Admin", "add_meta_boxes_post"));`
   Needs to be changed to : `add_action("add_meta_boxes", array("Medium_Admin", "
   add_meta_boxes_post"));` *the action “add_meta_boxes_post” obviously only fires
   on the “post” post type.
 * Line 290 :
    `WHERE p.post_type = 'post'` You will need to add a AND your post
   type line, so mine ended up looking like :
 *     ```
       WHERE p.post_type = 'post'
       AND p.post_type = 'courses'
       ```
   
 * * This will allow for CPT migration
 * On line 456
    `add_meta_box("medium", "Medium", array("Medium_Admin", "meta_box_callback"),
   null, "side", "high");` Will need to change “null” to an array of values, so 
   mine looked like : `add_meta_box("medium", "Medium", array("Medium_Admin", "meta_box_callback"),
   array("courses","post"), "side", "high");`
 * And finally on line 468 :
    `$allowed_post_types = apply_filters("medium_allowed_post_types",
   array("post"));` Needs to be updated with all the post types you need, so mine
   looked like: `$allowed_post_types = apply_filters("medium_allowed_post_types",
   array("post","courses"));`
 * Hopes that helps

Viewing 2 replies - 1 through 2 (of 2 total)