Forums

Limit One Category per post (4 posts)

  1. poorrichardwebpress
    Member
    Posted 4 years ago #

    Is there any plugin that will allow me to limit my guest bloggers to using only one category for their post? Either that or I need a clue on how to replace the category check boxes with radio boxes.

  2. lipsk
    Member
    Posted 3 years ago #

    Any success? I'm trying to do the same thing here.

  3. lipsk
    Member
    Posted 3 years ago #

    Well... I use WP 2.6.
    I changed this file

    wp-admin/includes/template-orig.php

    at line 181 and it worked

    $output .= "\n<li id='category-$category->term_id'$class>" . '<label for="in-category-' . $category->term_id . '" class="selectit"><input value="' . $category->term_id . '" type="radio" name="post_category[]" id="in-category-' . $category->term_id . '"' . (in_array( $category->term_id, $selected_cats ) ? ' checked="checked"' : "" ) . '/> ' . wp_specialchars( apply_filters('the_category', $category->name )) . '</label>';

    Yeah I changed the core, but hell It will do until I find out how to make a plugin.

  4. lipsk
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic