Title: itslori's Replies | WordPress.org

---

# itslori

  [  ](https://wordpress.org/support/users/itslori/)

 *   [Profile](https://wordpress.org/support/users/itslori/)
 *   [Topics Started](https://wordpress.org/support/users/itslori/topics/)
 *   [Replies Created](https://wordpress.org/support/users/itslori/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/itslori/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/itslori/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/itslori/engagements/)
 *   [Favorites](https://wordpress.org/support/users/itslori/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Hueman] Custom single post template for specific category](https://wordpress.org/support/topic/custom-single-post-template-for-specific-category-2/)
 *  Thread Starter [itslori](https://wordpress.org/support/users/itslori/)
 * (@itslori)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/custom-single-post-template-for-specific-category-2/#post-9631141)
 * Update:
 * As much as I hate to edit a parent theme file, I’ve edited the function: “hu_is_authorized_tmpl”
   in file: functions/init-front.php to include (authorize) my custom tmpl file.
   Of course, it works, but this is far from ideal, especially as Hueman is updated
   very frequently ([https://themes.trac.wordpress.org/log/hueman](https://themes.trac.wordpress.org/log/hueman)).
 * I attempted first to override the function with remove_filter (done the proper
   way to ensure it’ll override the parent?), and this may be the best method to
   achieve what I need. It didn’t work, however, and I’m hoping it’s a simple mix-
   up in how I’ve set the overriding function up (likely!).
 *     ```
       function my_hu_is_authorized_tmpl( $tmpl ) {
           $ct_map = apply_filters(
               'hu_content_map',
               array( 'tmpl/index-tmpl', 'tmpl/archive-tmpl', 'tmpl/page-tmpl', 'tmpl/single-tmpl', 'tmpl/search-tmpl', 'tmpl/404-tmpl', 'tmpl/MYCUSTOMTEMPLATEFILE-tmpl' )
           );
           //Are we good after filtering ?
           if ( ! is_array( $ct_map ) || ! is_string( $tmpl ) )
             return;
           return in_array( $tmpl, $ct_map );
       }
   
       function my_child_theme_setup() {
           remove_filter( 'hu_is_authorized_tmpl', 'hu_content_map' );
           add_filter( 'hu_is_authorized_tmpl', 'my_hu_is_authorized_tmpl' );
       }
       ```
   
 * Of note, I agree with the poster of the topic “Custom post type templating issues”
   on several points. I think we use WP so differently that even themes need to 
   be highly customizable and with few restrictions. I may switch to a CPT for this
   specific category and will also need to know how best to add a CPT template within
   Hueman. This is a wonderful theme — one of the best available — but I’m just 
   currently stuck. Input is appreciated.

Viewing 1 replies (of 1 total)