Title: Hierarchical post? Do nothing
Last modified: January 15, 2018

---

# Hierarchical post? Do nothing

 *  Resolved [strarsis](https://wordpress.org/support/users/strarsis/)
 * (@strarsis)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/hierarchical-post-do-nothing/)
 * I am using the `redirection_monitor_types` filter to add
    more post types the
   Redirection URL monitor should watch.
 * However, there is one line in code that prevents this for a particular CPT:
     //
   Hierarchical post? Do nothing $type = get_post_type( $post->ID ); if ( is_post_type_hierarchical(
   $post->post_type ) && $type !== ‘page’ ) { return false; }
 * So hierarchical custom post types (not pages) are always ignored.
    Why? I really
   want this enabled for my hierarchical custom post type. How can I get around 
   this restriction? There seems to be no option, hook or filter.
 * Thanks and
    with best regards

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

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/hierarchical-post-do-nothing/#post-9866816)
 * The next version of the plugin handles custom post types for you, and that code
   no longer exists. There’s a beta here:
 * [https://github.com/johngodley/redirection/releases/tag/3.0-beta-1](https://github.com/johngodley/redirection/releases/tag/3.0-beta-1)
 *  Thread Starter [strarsis](https://wordpress.org/support/users/strarsis/)
 * (@strarsis)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/hierarchical-post-do-nothing/#post-9867266)
 * [@johnny5](https://wordpress.org/support/users/johnny5/): That’s awesome! Seeing
   forward to a release of it!
    Also see this issue [https://github.com/johngodley/redirection/issues/623](https://github.com/johngodley/redirection/issues/623)
   for installing the plugin directly from repository using composer.

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

The topic ‘Hierarchical post? Do nothing’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

## Tags

 * [check](https://wordpress.org/support/topic-tag/check/)
 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [hierarchical](https://wordpress.org/support/topic-tag/hierarchical/)
 * [ignore](https://wordpress.org/support/topic-tag/ignore/)
 * [monitor](https://wordpress.org/support/topic-tag/monitor/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [skip](https://wordpress.org/support/topic-tag/skip/)

 * 2 replies
 * 2 participants
 * Last reply from: [strarsis](https://wordpress.org/support/users/strarsis/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/hierarchical-post-do-nothing/#post-9867266)
 * Status: resolved