I hope you are well today and thank you for your question.
The plugin only displays post types configured to search so please make sure that the post types are searchable.
Best regards,
Thanks, however other search plugin can pick up those custom post types, how can i make sure it is searchable by your plugin?
I am not sure why other plugins pick up those post types if they are configured to be not searchable.
When registering the post type using register_post_type function, there is an argument to the function called exclude_from_search that determines whether the post type is searchable.
You can get more information about it on the below page.
https://developer.wordpress.org/reference/functions/register_post_type/
hmmmm, i do see exclude_from_search exist in the register_post_type function, however even i remove that, ivory search still unable to pick up the custom post type, is there anything do with cache? also i wonder why all other searching plugin still able to pick that post type up?
Edit: also some of the post type doesn’t get detected also do not have exclude_from_search tag
-
This reply was modified 6 years, 3 months ago by
mechcalvin.
Please also see other arguments of register_post_type function such as public, publicly_queryable etc.
Could you please share the screenshots of the screen where you don’t see those post types?
For screenshots, you can simply provide a link to an image through Google Drive, Dropbox, screencast.com, http://imgur.com/ or other image service. 🙂
please check this link
https://mechcalvin.com/pictures/02.JPG
there should be a custom post type called cf47rs_property
you can see from other screenshot from Ajax search (and rest of the others), they can also pick up cf47rs_partner, cf47rs_property… without any coding modification
https://mechcalvin.com/pictures/03.JPG
EDIT: i found out exclude from search still exist in child theme, after i remove that now it appears! thanks, however it doesn’t explain why other plugins still able to pick that up, also those do not have exclude from search still missing, but at least it works for me now.
-
This reply was modified 6 years, 3 months ago by
mechcalvin.
I am not sure why other plugins are behaving like that but I follow WordPress best practices in developing the plugin.
Glad you managed to fix it.
Have a fantastic day!