@abbas – thanks for your reply
I do not use a search feature plugin. I used a search form similar to what is used on WP Job Manager using their tutorial Tutorial: Creating a custom job search?form.
I thought that search functionality would be a standard feature in MAS Companies For WP Job Manager.
I tried to enable the companies post type using various ways and nothing worked.
I tried using: <input type="hidden" name="post_type" value="companies" />
in my search form but this did not work.
I tried to register the post_type “companies” in functions/php like this:
function wporg_custom_post_type() {
register_post_type('companies',
array(
'labels' => array(
'name' => __('Companies', 'textdomain'),
'singular_name' => __('Company', 'textdomain'),
),
'public' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
)
);
}
add_action('init', 'wporg_custom_post_type');
Did not work.
I also tried using a plugin called Custom Post Type UI and added “companies” as a post type. This did not work.
Can you tell me how to: “Please make sure are you also enabled the Companies post type in your search feature.”
The search here is working for JOBS https://gedafrica.com/jobs/job-seekers/
Here is the companies page https://gedafrica.com/jobs/businesses/ where the search is NOT working.