Title: [Plugin: Edit Flow] Support for Custom Post Types
Last modified: August 20, 2016

---

# [Plugin: Edit Flow] Support for Custom Post Types

 *  Resolved [sriz](https://wordpress.org/support/users/sriz/)
 * (@sriz)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/)
 * How to make it work with Custom Post Types ?
 * I noticed in a thread (made 10 months ago) that there would be support for CPTs
   soon.
 * Is it available yet?
 * Thanks
 * [http://wordpress.org/extend/plugins/edit-flow/](http://wordpress.org/extend/plugins/edit-flow/)

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

 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/#post-2305036)
 * Yes, custom post type support is documented in “[Other Notes](http://wordpress.org/extend/plugins/edit-flow/other_notes/)“.
   You’ll want to add the relevant snippets into your theme’s functions.php file.
 * In Edit Flow v0.7, we’ll be added an interface for managing which features are
   available for which custom post types in the admin.
 * Let us know if you have any specific questions about the implementation.
 *  Thread Starter [sriz](https://wordpress.org/support/users/sriz/)
 * (@sriz)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/#post-2305040)
 * Thanks for quick reply.
 * Awesome. It worked great.
 *  [Radina Matic](https://wordpress.org/support/users/dd666/)
 * (@dd666)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/#post-2305305)
 * I apologize for this basic question, but PHP is not my strong suit and I have
   never edited the functions.php file before.
 * Where exactly is the “init hook”? I made a child theme from Yoko theme but I 
   can not figure out where to put the “register_post_type” or “add_post_type_support”
   in this child functions.php file. Tried various options and googled around to
   no avail… 🙁
    Can somebody please help me with this?
 * Thanks in advance.
    DD
 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/#post-2305306)
 * [@dd666](https://wordpress.org/support/users/dd666/) You can modify the following
   snippet to your needs:
 *     ```
       function db_add_ef_post_type_support() {
       add_post_type_support('your_custom_post_type_name', 'ef_functionality');
       }
       add_action('init, 'db_add_ef_post_type_support');
       ```
   
 * You can include `add_post_type_support()` as many times as you need with the 
   function.
 * Alternatively, you can wait a couple of weeks for the v0.7 release and you’ll
   be able to configure this from the admin.
 * Hope this helps,
 * Daniel
 *  [Radina Matic](https://wordpress.org/support/users/dd666/)
 * (@dd666)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/#post-2305307)
 * Thanks Daniel, it’s working now and I have learnt one more thing today… 😉
 * Looking forward to see the new release!
 * Cheers,
    DD
 *  [kalee-eversole](https://wordpress.org/support/users/kalee-eversole/)
 * (@kalee-eversole)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/#post-2305311)
 * I just tried to add and modify this code you provided in my functions.php file,(
   and I am also quite lousy with PHP) and it keeps coming up in my file as if I
   am adding it in between the wrong tags,( which I might be) …basically I am just
   lost as to where to add it in the file and what parts actually need modifying?
   I’m pretty bad at this, but any extra help would be awesome.
 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/#post-2305312)
 * [@kalee-eversole](https://wordpress.org/support/users/kalee-eversole/) Can you
   post here what you’ve added?
 *  [kalee-eversole](https://wordpress.org/support/users/kalee-eversole/)
 * (@kalee-eversole)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/#post-2305313)
 * Sure. Here is my entire functions.php file – I threw the code you provided above
   towards the bottom. I’m just not sure where to put it so it makes sense with 
   the other pieces of code or if I’m modifying it right. Thank you so much for 
   your quick response by the way! 🙂
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/#post-2305314)
 * I see what happened 🙂 Instead of:
 *     ```
       function db_add_ef_post_type_support() {
       add_post_type_support('Patterns', 'ef_functionality');
       }
       add_action('init, 'db_add_ef_post_type_support');
       ```
   
 * You’ll want to explicitly name the post functionality you want to add, like so:
 *     ```
       function db_add_ef_post_type_support() {
       add_post_type_support('Patterns', 'ef_notifications');
       add_post_type_support('Patterns', 'ef_custom_statuses');
       }
       add_action('init, 'db_add_ef_post_type_support');
       ```
   
 * You’ll obviously want to include the functionality you actually want.
 * Hope this helps,
 * Daniel
 *  [kalee-eversole](https://wordpress.org/support/users/kalee-eversole/)
 * (@kalee-eversole)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/#post-2305315)
 * Thanks Daniel. I just tried using the code above, but I’m still having the same
   issue. I guess my snag here is that once I add the `add_action('init, 'db_add_ef_post_type_support');`,
   after the initial code snippet above my closing php tag ( ?> ) tag changes from
   red to orange, (I’m using Coda) which renders the code broken. I apologize if
   there is something obvious here I am not recognizing haha, I truly appreciate
   the help though!
 * Kalee
 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/#post-2305316)
 * [@kalee-eversole](https://wordpress.org/support/users/kalee-eversole/) What error
   do you get?
 *  [kalee-eversole](https://wordpress.org/support/users/kalee-eversole/)
 * (@kalee-eversole)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/#post-2305317)
 * After saving the functions file with the entire snippet you gave me, I get a 
   HTTP Error 500/Server error when I refresh my site. And the code in the file 
   acts like I’ve placed the snippet somewhere without closing a tag, however I 
   hadn’t been in or modified the functions file until today.
 * Here is a link to a screenshot that shows you the code I have: [http://img17.imageshack.us/img17/4536/screenshot20111115at400.png](http://img17.imageshack.us/img17/4536/screenshot20111115at400.png)
 * Thanks again,
 * Kalee
 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/#post-2305318)
 * My bad. I missed a quotation mark in my snippet. Try this instead:
 *     ```
       function db_add_ef_post_type_support() {
       add_post_type_support('Patterns', 'ef_notifications');
       add_post_type_support('Patterns', 'ef_custom_statuses');
       }
       add_action('init', 'db_add_ef_post_type_support');
       ```
   
 * (The ‘init’ code was missing a quotation mark…)
 * Hope this helps,
 * Daniel
 *  [kalee-eversole](https://wordpress.org/support/users/kalee-eversole/)
 * (@kalee-eversole)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/#post-2305319)
 * Oh great! That worked like a charm, I didn’t even notice the missing quotation!
   Thank you so much!
 * One little though though – when I click on ‘Pending Review’ (or any other status,
   custom or not) on the Posts at a Glance widget in the dashboard, it shows 3 total
   Pending Review posts ( 2 from Posts tab and 1 from my CPT Patterns tab) but it
   will only take me to the Pending Review entries for Posts and will not display
   my custom post type Patterns Pending Review posts. I don’t know if this is a 
   bug or something I haven’t configured correctly. Everything else seems to be 
   working fine now, though.
 * Thank you again for all of your help!
 * Kalee
 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/#post-2305320)
 * > One little though though – when I click on ‘Pending Review’ (or any other status,
   > custom or not) on the Posts at a Glance widget in the dashboard, it shows 3
   > total Pending Review posts ( 2 from Posts tab and 1 from my CPT Patterns tab)
   > but it will only take me to the Pending Review entries for Posts and will not
   > display my custom post type Patterns Pending Review posts. I don’t know if 
   > this is a bug or something I haven’t configured correctly. Everything else 
   > seems to be working fine now, though.
 * This is a known bug we hope to have resolved in an upcoming release.
 * Thanks,
 * Daniel

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

The topic ‘[Plugin: Edit Flow] Support for Custom Post Types’ is closed to new replies.

 * ![](https://ps.w.org/edit-flow/assets/icon-256x256.png?rev=3433533)
 * [Edit Flow](https://wordpress.org/plugins/edit-flow/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/edit-flow/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/edit-flow/)
 * [Active Topics](https://wordpress.org/support/plugin/edit-flow/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/edit-flow/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/edit-flow/reviews/)

 * 15 replies
 * 4 participants
 * Last reply from: [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-edit-flow-support-for-custom-post-types/#post-2305320)
 * Status: resolved