Title: Solution for custom post types
Last modified: August 21, 2016

---

# Solution for custom post types

 *  [Birgir Erlendsson (birgire)](https://wordpress.org/support/users/birgire/)
 * (@birgire)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/solution-for-custom-post-types/)
 * Hi, I just wanted to share an idea how one can use this great plugin for other
   custom post types (other than pages):
 * With the plugin installed and activated, one can use the following code snippet
   to setup tabs for custom post types, without having to modify some file templates,
   you just have to modify a single array and you’re done.
 * Here’s an example for the _post_ and _news_ post types:
 *     ```
       add_action( 'load-post.php', 'wpse_143674_init' );
   
       function wpse_143674_init()
       {
           //--------------------------------
           // EDIT this setup to your needs:
           //
           $args = array(
               'post' => array( 'Bottom', 'Center', 'Top' ),
               'news' => array( 'Left', 'Right' ),
           );
           //-------------------------------
   
           $m = new WPSE_Multi_Edit_CPT( $args );
           $m->init();
       }
       ```
   
 * where you can get the `WPSE_Multi_Edit_CPT` class from here:
 * [http://wordpress.stackexchange.com/a/143688/26350](http://wordpress.stackexchange.com/a/143688/26350)
 * Best regards.
 * [https://wordpress.org/plugins/pagely-multiedit/](https://wordpress.org/plugins/pagely-multiedit/)

The topic ‘Solution for custom post types’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pagely-multiedit.svg)
 * [Pagely MultiEdit](https://wordpress.org/plugins/pagely-multiedit/)
 * [Support Threads](https://wordpress.org/support/plugin/pagely-multiedit/)
 * [Active Topics](https://wordpress.org/support/plugin/pagely-multiedit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pagely-multiedit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pagely-multiedit/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Birgir Erlendsson (birgire)](https://wordpress.org/support/users/birgire/)
 * Last activity: [11 years, 12 months ago](https://wordpress.org/support/topic/solution-for-custom-post-types/)
 * Status: not resolved