WordPress.org

Ready to get started?Download WordPress

Forums

WP User Frontend
Multi-categories (2 posts)

  1. gouffy41
    Member
    Posted 2 years ago #

    Hi,

    Is it possible to let users chose more than 1 categorie?

    It seems easy to ad this in wpuf-add-post.php and wpuf-edit-post.php, but the edit page show the same categorie in every fields!

    Thanks.

    http://wordpress.org/extend/plugins/wp-user-frontend/

  2. sg1_anhell
    Member
    Posted 2 years ago #

    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 ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.