Title: Adding Custom Post Type Support
Last modified: August 22, 2016

---

# Adding Custom Post Type Support

 *  [CPDesign](https://wordpress.org/support/users/cpdesigns/)
 * (@cpdesigns)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-post-type-support/)
 * I am aware that I am support to add ‘yarpp_support’ => true when registering 
   my custom post type, but mine looks a little different. I am using the MIES theme
   and the area where it registers the post type looks like this:
 *     ```
       if ( isset( $theme['post_types'] ) && is_array( $theme['post_types'] ) ) {
       		foreach ( $theme['post_types'] as $post_type => $post_type_args ) {
       			// eliminate the theme prefix
       			$post_type_key = strstr( $post_type, '_');
       			$post_type_key = substr($post_type_key, 1);
       			if ( isset($options["enable_" . $post_type_key ]) ){
       				$options['display_settings'] = true;
       				if ( $options["enable_" . $post_type_key] ) {
       					register_post_type( $post_type, $post_type_args  );
       				}
       			}
       		}
       	}
       ```
   
 * I changed the register_post_type line to look like this but it did not work
    `
   register_post_type( $post_type, $post_type_args, array('yarpp_support' => true));`
 * [https://wordpress.org/plugins/yet-another-related-posts-plugin/](https://wordpress.org/plugins/yet-another-related-posts-plugin/)

The topic ‘Adding Custom Post Type Support’ is closed to new replies.

 * ![](https://ps.w.org/yet-another-related-posts-plugin/assets/icon-256x256.png?
   rev=2549977)
 * [YARPP - Yet Another Related Posts Plugin](https://wordpress.org/plugins/yet-another-related-posts-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yet-another-related-posts-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/reviews/)

## Tags

 * [YARPP](https://wordpress.org/support/topic-tag/yarpp/)

 * 0 replies
 * 1 participant
 * Last reply from: [CPDesign](https://wordpress.org/support/users/cpdesigns/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-post-type-support/)
 * Status: not resolved