[resolved] Force Category Template plugin question (5 posts)

  1. kappaluppa
    Posted 9 years ago #


    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?


  2. moshu
    Posted 9 years ago #

    Not familiar with that plugin.
    Here is an alternative solution:

  3. kappaluppa
    Posted 9 years ago #

    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!

  4. moshu
    Posted 9 years ago #

    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'

  5. kappaluppa
    Posted 9 years ago #


Topic Closed

This topic has been closed to new replies.

About this Topic