WordPress.org

Support

Support » Plugins and Hacks » [Plugin: FeedWordPress] Make use of walker-category-checklist?

[Plugin: FeedWordPress] Make use of walker-category-checklist?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Daedalon
    Participant

    @daedalon

    This might be helpful: http://phpdoc.wordpress.org/trunk/WordPress/Administration/Walker_Category_Checklist.html

    Walker to output an unordered list of category checkbox <input> elements.

    see: wp_terms_checklist()
    see: wp_category_checklist()
    see: Walker
    since: 2.5.1

    Located in /wp-admin/includes/template.php (line 23)

    uday.dahale
    Member

    @udaydahale-1

    Hi DAedalon,

    Sorry for my english….

    Could I VAlidation for the Category check list.

    Please I want the mandatory of category fields.

    please fix my issue.

    regards,

    uday

    Daedalon
    Participant

    @daedalon

    Sorry, I am not currently using the plugin and am not that familiar with it. Hopefully someone more experienced with it can help you out.

    You should consider opening a new thread on this plugin’s forum if your issue is different than what the first post is about.

    uday.dahale
    Member

    @udaydahale-1

    thank you very much for reply DAedalon

    The check list come from template.php file.

    code is:
    function start_el( &$output, $category, $depth, $args, $id = 0 ) {
    extract($args);
    if ( empty($taxonomy) )
    $taxonomy = ‘category’;

    if ( $taxonomy == ‘category’ )
    $name = ‘post_category’;
    else
    $name = ‘tax_input[‘.$taxonomy.’]’;

    $class = in_array( $category->term_id, $popular_cats ) ? ‘ class=”popular-category”‘ : ”;

    if($category->tax_order != ‘0’){

    //echo $category->tax_order;
    $checka= “in-“.$taxonomy.”-” .$category->term_id.”
    “;

    $output .= “\n<li id='{$taxonomy}-{$category->term_id}’$class>” . ‘<label class=”selectit”><input value=”‘ . $category->term_id . ‘” type=”checkbox” name=”‘.$name.'[]” id=”in-‘.$taxonomy.’-‘ . $category->term_id . ‘”‘ . checked( in_array( $category->term_id, $selected_cats ), true, false ) . disabled( empty( $args[‘disabled’] ), false, false ) . ‘ /> ‘ . esc_html( apply_filters(‘the_category’, $category->name )) . ‘</label>’;
    }

    }

    I want these field is mandatory.
    Please tell me how????

    help me please.

    regards,

    uday

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: FeedWordPress] Make use of walker-category-checklist?’ is closed to new replies.