• Resolved KZNCraig

    (@kzncraig)


    I have the search functionality working on Job listings but I cannot seem to get it working for ‘companies’. Any advice or documentation?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @kzncraig,

    Please make sure are you also enabled the Companies post type in your search feature.

    If you still have issue please contact your search feature plugin author.

    Thanks, Abbas

    Thread Starter KZNCraig

    (@kzncraig)

    @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.

    Thread Starter KZNCraig

    (@kzncraig)

    Update: I ended up using a search plugin called Ivory Search and all works nicely now.

    Plugin Author MadrasThemes

    (@madrasthemes)

    Thank you for sharing with us the most compatible plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Search functionality’ is closed to new replies.