WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Force Category Template plugin question

[Resolved] Force Category Template plugin question

  • Hi,

    From what the description for the plugin 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)
  • Not familiar with that plugin.
    Here is an alternative solution:
    http://guff.szub.net/2005/07/21/post-templates-by-category/

    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!

    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’

    YAAAAAAAAAAAAAAAAAAAAAAAAAYYYYY!!!!!
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Force Category Template plugin question’ is closed to new replies.