Title: Force Category Template plugin question
Last modified: August 18, 2016

---

# Force Category Template plugin question

 *  Resolved [kappaluppa](https://wordpress.org/support/users/kappaluppa/)
 * (@kappaluppa)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/force-category-template-plugin-question/)
 * Hi,
 * From what the description for the plugin [http://txfx.net/code/wordpress/force-category-template](http://txfx.net/code/wordpress/force-category-template)
   says, this will do exactly what I need – carry the category template design through
   to a single post in a category.
 * I uploaded and activated the plugin, but when I try to look at a post in a category
   that has a special template the page gets stuck in a while loop. I get these 
   errors:
 * Warning: rawurlencode() expects parameter 1 to be string, array given in /home/
   leadershipprogram/www/wp-blog-header.php on line 171
 * Warning: extract() [function.extract]: First argument should be an array in /
   home/leadershipprogram/www/wp-blog-header.php on line 184
 * Any other post not in a category that has a category template works fine.
 * Any ideas?
 * thanks,
    K

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/force-category-template-plugin-question/#post-470358)
 * Not familiar with that plugin.
    Here is an alternative solution: [http://guff.szub.net/2005/07/21/post-templates-by-category/](http://guff.szub.net/2005/07/21/post-templates-by-category/)
 *  Thread Starter [kappaluppa](https://wordpress.org/support/users/kappaluppa/)
 * (@kappaluppa)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/force-category-template-plugin-question/#post-470360)
 * I saw that, but I just could not understand what it is I need to change in the
   plugin file. (maybe cuz it’s late and I need to go to bed, but my brain cannot
   get around it!)
 * This is what it says to do:
 * /* >> Begin user-configurable variable >> */
    define(‘SZUB_TEMPLATENAME_PREFIX’,‘
   single-cat’); // change value (‘single-cat’) to reflect template filenames /*
   << End user-configurable variable << */
 * The template file I’m using to format a list of posts in category 9 is category-
   9.php.
 * Do I replace ‘single-cat’ with ‘single-cat-9.php’ or ‘single-cat-9’ or ‘category-
   9’ or ‘category-9.php’
 * Frankly, I’ve tried all of those and the formatting does not carry through.
 * Thanks for any help!
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/force-category-template-plugin-question/#post-470361)
 * If you have a category-9.php template file for your category ID# 9… which you
   want to be applied to single posts in that catgeory, too – change ‘single-cat’
   to ‘category’
 *  Thread Starter [kappaluppa](https://wordpress.org/support/users/kappaluppa/)
 * (@kappaluppa)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/force-category-template-plugin-question/#post-470362)
 * YAAAAAAAAAAAAAAAAAAAAAAAAAYYYYY!!!!!
    Thanks!

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

The topic ‘Force Category Template plugin question’ is closed to new replies.

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [kappaluppa](https://wordpress.org/support/users/kappaluppa/)
 * Last activity: [19 years, 7 months ago](https://wordpress.org/support/topic/force-category-template-plugin-question/#post-470362)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
