Title: single_template filter is missing.
Last modified: August 20, 2016

---

# single_template filter is missing.

 *  [david85allen@googlemail.com](https://wordpress.org/support/users/david85allengooglemailcom/)
 * (@david85allengooglemailcom)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/single_template-filter-is-missing/)
 * Hi can some one confirm that the single_template filter is now missing in v3.4
   and what i can use instead….
 * Many Thanks
 * Dave

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/single_template-filter-is-missing/#post-2820330)
 * It is indeed gone. All of the filters in the various get_???_template() functions
   have been removed. Not sure a workaround exists.
 *  Thread Starter [david85allen@googlemail.com](https://wordpress.org/support/users/david85allengooglemailcom/)
 * (@david85allengooglemailcom)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/single_template-filter-is-missing/#post-2820331)
 * Why have they got rid of them. It doesn’t make any sense.
 * I hope someone can help with a workaround.
 *  [Arie Putranto](https://wordpress.org/support/users/arieputranto/)
 * (@arieputranto)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/single_template-filter-is-missing/#post-2820340)
 * Is it? I notice that there is still filter `{$type}_template` in wp-includes/
   template.php (Line: 28)
 *  [Raj](https://wordpress.org/support/users/rajmahendran/)
 * (@rajmahendran)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/single_template-filter-is-missing/#post-2820625)
 * Hi All, same problem.
 * Now I am using below code for load the template for my custom post type from 
   my plugin folder.
 *     ```
       function (My_Custom_Post_Type)_template($single_template) {
            global $post;
   
            if ($post->post_type == '{My_Custom_Post_Type}') {
                 $single_template = dirname( __FILE__ ) . '/templates/{My_Custom_Post_Type}-template.php';
            }
            return $single_template;
       }
   
       add_filter( "single_template", "{My_Custom_Post_Type}_template" );
       ```
   
 * How could I replace the above “single_template” filter.
 * How could I have use this {$type}_template?
 * Please help!
 * _[Moderator Note: Please post code or markup snippets between backticks or use
   the code button. As it stands, your code may now have been permanently damaged/
   corrupted by the forum’s parser.]_
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/single_template-filter-is-missing/#post-2820626)
 * Please [post your own topic](http://wordpress.org/support/forum/how-to-and-troubleshooting#postform).

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

The topic ‘single_template filter is missing.’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 5 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/single_template-filter-is-missing/#post-2820626)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
