• Resolved dbiescas

    (@dbiescas)


    Hi,
    I need more complete filter. I’m already using Jobs Types and Job Tags.
    But I can not separate two categories of families in Job tags, so I’m trying to develop categories of Jobs.

    I need filter two different selects for two family category (type and age).

    By default only can use one, and I use for type.

    To I can filter for Age, I copied the default select and changed the params.

    I explain:

    – In wp-job-manager-functions.php I copied the job_manager_dropdown_categories () function with a new name and with the ‘child_of’ ID value of Age category.

    – In job-filters.php I copied the function:
    job_manager_dropdown_categories_age( array( 'taxonomy' => 'job_listing_category', 'hierarchical' => 1, 'show_option_all' => __( 'Cualquier edad', 'wp-job-manager' ), 'name' => 'search_categories', 'orderby' => 'name', 'selected' => $selected_category, 'multiple' => false ) );

    And this seems to work … but it only works properly the first select.
    If in job-filters.php show first select Type, this works correctly, if you first select to put the Ages, this works correctly.

    It seems that both are properly developed, but I do not work at the same time.

    And whoever it is in second position, only works if the first has some value.

    Is it the fault of JS? Where are these files?

    If anyone knows if someone can create two categories of families to filter separately, or if I can install 2 times Job Tags plugin to have different behaviors ..

    Thank you very much for your attention and sorry for my English (translator use).

    https://wordpress.org/plugins/wp-job-manager/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Filter by two categories with two selects’ is closed to new replies.