Title: to include custom post types
Last modified: September 8, 2022

---

# to include custom post types

 *  [AndreSC](https://wordpress.org/support/users/andresc/)
 * (@andresc)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/to-include-custom-post-types/)
 * It appears possible to include custom post types by inserting a line line
 *     ```
       function where_show_pages($show_pages, $show_attachments='false') {
       	if (function_exists('get_post_type')) {
       		$typelist = array();
                       $typelist[] = "'my_custom_type'";//  <-- insert post type
       ```
   
 * Caveat; I don’t know if it breaks anything but seems to work for me and the logic
   seems relatively straightforward there. Thought maybe it will help someone else
   or post types to include could become an integrated option?

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

 * ![](https://s.w.org/plugins/geopattern-icon/similar-posts_34c5f7.svg)
 * [Similar Posts - Best Related Posts Plugin for WordPress](https://wordpress.org/plugins/similar-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/similar-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/similar-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/similar-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/similar-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/similar-posts/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [AndreSC](https://wordpress.org/support/users/andresc/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/to-include-custom-post-types/)
 * Status: not a support question