Title: Custom post type
Last modified: August 31, 2016

---

# Custom post type

 *  [bdempleos](https://wordpress.org/support/users/bdempleos/)
 * (@bdempleos)
 * [10 years ago](https://wordpress.org/support/topic/custom-post-type-136/)
 * I would like to know.
    Do this plugin work with custom post types? Because my
   site [Buscadordempleos](http://buscadordempleos.com).com works on wp job manager
   and has custom post types. Thanks
 * [https://wordpress.org/plugins/medium/](https://wordpress.org/plugins/medium/)

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

 *  [TrueCrewKen](https://wordpress.org/support/users/truecrewken/)
 * (@truecrewken)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-136/#post-7355088)
 * +1 request for this feature — custom post type support.
 *  [huckphin](https://wordpress.org/support/users/huckphin/)
 * (@huckphin)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/custom-post-type-136/#post-7355110)
 * Hello, thanks for reporting. As long as the taxonomy of the post hierarchy is
   retained, this should not prevent cross-posting. How is your site creating the
   custom post type? Is it with a plugin or theme? Taking a look at your site, I
   was unable to determine how the custom post type is created.
 * ~Chad
 *  [codyred](https://wordpress.org/support/users/codyred/)
 * (@codyred)
 * [9 years, 6 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

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

The topic ‘Custom post type’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/medium_2c394c.svg)
 * [Medium](https://wordpress.org/plugins/medium/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/medium/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/medium/)
 * [Active Topics](https://wordpress.org/support/plugin/medium/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/medium/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/medium/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [codyred](https://wordpress.org/support/users/codyred/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/custom-post-type-136/#post-8381177)
 * Status: not resolved