WordPress.org

Ready to get started?Download WordPress

Forums

Custom Category Template
[resolved] Not with sub categories (3 posts)

  1. bobschecter
    Member
    Posted 2 years ago #

    Works fine on a top level category, but when their are subcategories, not only does it not work right, but it won't allow you to revert back to the default.

    http://wordpress.org/extend/plugins/custom-category-template/

  2. bobschecter
    Member
    Posted 2 years ago #

    Oh my, even on the top level category, it will not allow you to revert back to the default. You can change it to other page templates, but you cannot get back to the default.

    Sorry, this one is a FAIL.

  3. ddsuresh
    Member
    Posted 2 years ago #

    You have to edit wp-content/plugins/custom-category-template/category_template.php

    Find:

    if ( isset( $_POST['cat_template'] ) &&  $_POST['cat_template'] != 'default' ) {

    Replace With:

    $cat_meta = get_option( "category_templates");
    $cat_template_name = $cat_meta[$term_id];
    if ( isset( $_POST['cat_template'] ) &&  $_POST['cat_template'] != $cat_template_name ) {

    Then it will work properly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.