• Resolved Creativemind18

    (@jobsgivers)


    Thank you for your wonderful plugin, it’s indeed a pain releaf. I was wondering if it’s possible to create additional company taxonomy category. Just like we have Industry, Company revenue, Company size, company average salary.

    I just want to create an additional custom category like the above examples. If there is a code snippet to achieve this kindly drop it for me.

    I look forward to your usual quick reply.

    Thank you once again for your great plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Kader Ibrahim S

    (@ibndawood)

    Hello there,

    Thank you for trying out our plugin. The plugin uses mas_company_taxonomies_list filter to create taxonomies for the company. You can use this filter to add in your own taxonomy. For example:

    add_filter( 'mas_company_taxonomies_list', 'my_mas_company_taxonomy', 10 );
    
    function my_mas_company_taxonomy( $taxonomies ) {
        $taxonomies['company_location'] = array(
            'singular' => esc_html__( 'Location', 'mas-wp-job-manager-company' ),
            'plural'   => esc_html__( 'Locations', 'mas-wp-job-manager-company' ),
            'slug'     => esc_html_x( 'company-location', 'Company location permalink - resave permalinks after changing this', 'mas-wp-job-manager-company' ),
            'enable'   => get_option( 'job_manager_company_enable_company_location', true )
        );
        return $taxonomies;
    }

    Please note that you should use taxonomies only if you are looking to use them as filters. Otherwise you should simply use meta field. It is faster in that way.

    Hope this helps. Let us know if you have any other questions or need further help.

    Thanks,
    Ibrahim

    Thread Starter Creativemind18

    (@jobsgivers)

    As i did not get response from you early, i managed to resolve this before now.

    All the same, thank you for your response and solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to create additional company category’ is closed to new replies.