Title: custom post type
Last modified: August 21, 2016

---

# custom post type

 *  Resolved [Ahmad Bagwi Rifai](https://wordpress.org/support/users/agi_andnet/)
 * (@agi_andnet)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-post-type-53/)
 * I have plugin wp job manager how to combine with subscribe2 (create custom post
   type). So if I post jobs, subscriber receive jobs email.
 * [http://wordpress.org/plugins/subscribe2/](http://wordpress.org/plugins/subscribe2/)

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

 *  Thread Starter [Ahmad Bagwi Rifai](https://wordpress.org/support/users/agi_andnet/)
 * (@agi_andnet)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-post-type-53/#post-4338253)
 * does right if I put code on theme file function.php
 * function my_post_types($types) {
    $types[] = ‘job_listing’; return $types; }
 * add_filter(‘s2_post_types’, ‘job_listing’);
 *  Thread Starter [Ahmad Bagwi Rifai](https://wordpress.org/support/users/agi_andnet/)
 * (@agi_andnet)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-post-type-53/#post-4338263)
 * Sorry I wrong type
 * does right if I **place** code on theme file function.php
 * function my_post_types($types) {
    $types[] = ‘job_listing’; return $types; }
 * add_filter(‘s2_post_types’, ‘job_listing’);
 *  [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-post-type-53/#post-4338302)
 * [@agi_andnet](https://wordpress.org/support/users/agi_andnet/),
 * The code would work in theory in the functions.php file of your theme provided
   that you use the right code – currently your code contains errors.
 * Bear in mind that if you update your theme you would lose any changes applied
   in that file and also bear in mind that you almost certainly need to register
   a custom taxonomy type as weel as the post type. Corrected code is as follows:
   `
   function my_post_types($types) { $types[] = 'job_listing'; return $types; }
 * add_filter('s2_post_types', 'my_post_types');
 *  Thread Starter [Ahmad Bagwi Rifai](https://wordpress.org/support/users/agi_andnet/)
 * (@agi_andnet)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-post-type-53/#post-4338377)
 * Great many thanks, I correct code and create custom taxonomy with code
 * function my_taxonomy_types($taxonomies) {
    // where ‘my_taxonomy_type’ is the
   name of your custom taxonomy $taxonomies[] = ‘job_listing_type’; return $taxonomies;}
   add_filter(‘s2_taxonomies’, ‘my_taxonomy_types’);
 *  [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-post-type-53/#post-4338382)
 * [@agi_andnet](https://wordpress.org/support/users/agi_andnet/),
 * That looks good, it should work now so give it a test.

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

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

 * ![](https://ps.w.org/subscribe2/assets/icon-256x256.png?rev=2318630)
 * [Subscribe2 - Form, Email Subscribers & Newsletters](https://wordpress.org/plugins/subscribe2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/subscribe2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/subscribe2/)
 * [Active Topics](https://wordpress.org/support/plugin/subscribe2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/subscribe2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/subscribe2/reviews/)

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)

 * 5 replies
 * 2 participants
 * Last reply from: [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/custom-post-type-53/#post-4338382)
 * Status: resolved