Title: Include custom post types
Last modified: February 19, 2019

---

# Include custom post types

 *  Resolved [silentsooty](https://wordpress.org/support/users/silentsooty/)
 * (@silentsooty)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/include-custom-post-types-2/)
 * Hello
    On my website [https://www.attractionsnearme.co.uk/](https://www.attractionsnearme.co.uk/)
   I can get your application to republish regular posts with no issues. I use the
   WP GeoDirectory plugin which creates custom post types which I would like to 
   auto-republish. Each new listing I make with GeoDirectory is a custom post. By
   default, GeoDirectory offers a single custom post type, called “Places”. You 
   can see an example of a post created using GeoDirectory here: [https://www.attractionsnearme.co.uk/places/themeparks/alton-towers/](https://www.attractionsnearme.co.uk/places/themeparks/alton-towers/)
   I have followed your instructions to add the recommended snippet of code to my
   Sydney Child Theme functions.php but it is not picking up my WP GEODirectory 
   Places. Any guidance you can give me would be much appreciated. Many Thanks, 
   Dan Attractions Near Me
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finclude-custom-post-types-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Sayan Datta](https://wordpress.org/support/users/infosatech/)
 * (@infosatech)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/include-custom-post-types-2/#post-11222407)
 * Hi [@silentsooty](https://wordpress.org/support/users/silentsooty/)
 * Could you please paste the snippet here which you are using?
 * Thanks!
 *  Thread Starter [silentsooty](https://wordpress.org/support/users/silentsooty/)
 * (@silentsooty)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/include-custom-post-types-2/#post-11222497)
 * Hello
 * Please find the snippet below:
 * /* Allows me to Republish Custom Posts ie GEODirectory Places using WP Auto Republish*/
   
   add_filter( ‘wpar_supported_post_types’, ‘wpar_add_custom_post_types’ );
 * function wpar_add_custom_post_types( $output ) {
    $post_types = array( ‘page’,‘
   product’, ‘any_cpt’ ); return array_merge( $output, $post_types ); }
 * Regards
    Dan
 *  Plugin Author [Sayan Datta](https://wordpress.org/support/users/infosatech/)
 * (@infosatech)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/include-custom-post-types-2/#post-11222512)
 * Hi [@silentsooty](https://wordpress.org/support/users/silentsooty/)
 * You need to add your post type slug to this snippet:
 * Replace your current code with this:
 *     ```
       add_filter( 'wpar_supported_post_types', 'wpar_add_custom_post_types' );
   
       function wpar_add_custom_post_types( $output ) {
           $post_types = array( 'gd_place' );
           return array_merge( $output, $post_types );
       }
       ```
   
 * Thanks!
 *  Thread Starter [silentsooty](https://wordpress.org/support/users/silentsooty/)
 * (@silentsooty)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/include-custom-post-types-2/#post-11222629)
 * Hi Sayan
 * That worked perfectly, many thanks for your excellent support. I will be leaving
   a 5-star rating.
 * Regards
    Dan [https://www.attractionsnearme.co.uk/](https://www.attractionsnearme.co.uk/)
    -  This reply was modified 7 years, 2 months ago by [silentsooty](https://wordpress.org/support/users/silentsooty/).
      Reason: Marked as resolved

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

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

 * ![](https://ps.w.org/wp-auto-republish/assets/icon-256x256.png?rev=2786197)
 * [RevivePress – Keep your Old Content Evergreen](https://wordpress.org/plugins/wp-auto-republish/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-auto-republish/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-auto-republish/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-auto-republish/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-auto-republish/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-auto-republish/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [silentsooty](https://wordpress.org/support/users/silentsooty/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/include-custom-post-types-2/#post-11222629)
 * Status: resolved