Support » Plugin: WP User Frontend » [Plugin: WP User Frontend] Multi-categories

Viewing 1 replies (of 1 total)
  • Hi,
    I think that is it

    Search in wpuf-add-post.php: else if ( $cat_type == ‘ajax’ ) {

    And inside duplicate the same line, but put the ID of all exclude categories you want,

    Example (in the first show all) (in second show all except category 24):

    else if ( $cat_type == ‘ajax’ ) {

    wp_dropdown_categories( ‘show_option_none=’ . __( ‘– Select –‘, ‘wpuf’ ) . ‘&hierarchical=1&hide_empty=0&orderby=name&name=category[]&id=cat-ajax&show_count=0&title_li=&use_desc_for_title=1&class=cat requiredField&depth=1&exclude=’ . $exclude );

    wp_dropdown_categories( ‘show_option_none=’ . __( ‘– Select –‘, ‘wpuf’ ) . ‘&hierarchical=1&hide_empty=0&orderby=name&name=category[]&id=cat-ajax&show_count=0&title_li=&use_desc_for_title=1&class=cat requiredField&depth=1&exclude=’ . ’24’ );
    }

    See you men 😉

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP User Frontend] Multi-categories’ is closed to new replies.