Search custom posts types WordPress?

Good evening. Use the Search Everything plugin to search for custom record types. but when you produce a search in the search result is given a link on the main page. is there a way to make it so that instead of a reference output itself, the desired content? (this content is on the main ) many thanks in advance for the help. the link to the site if to hammer into a search you'll see that just gives a link to the main page
June 3rd 19 at 21:01
2 answers
June 3rd 19 at 21:03
And theme search forms what? Work search required parameter 's in the query string + I understand ) you Have no template search results search.phpso you eject the main page. WordPress always thrown on the chief in the absence of the requested template.
Here is the information for the study of the Hierarchy of theme files (template)

For custom post you need to check the settings
'public' => true,
'publicly_queryable' => null, // depends on public
'exclude_from_search' => null, // depends on public

THANK YOU SO MUCH. a really big thank you for attend to the matter and help, thanks for the link, now I will understand what and how - joey.Maggio commented on June 3rd 19 at 21:06
Yunus, maybe I'm wrong, I looked through the materials that you dropped and read about search pattern, so it seems I have) could you go to the link and see as they say with your own eyes? thanks in advance for your help. - joey.Maggio commented on June 3rd 19 at 21:09
the search pattern unfinished. Search works, but he is not in the main, and displays the list of matched pages, including Main. For custom posts finds nothing.

No need to use Search Everything, if custom record types created with public (as written above). Search and so will find them.

  • understand the pattern of search results
  • it is possible that the custom record is not available to search or they are in draft or status they have is different from published
- santiago30 commented on June 3rd 19 at 21:12
thank you so much. - joey.Maggio commented on June 3rd 19 at 21:15
June 3rd 19 at 21:05
I myself am this plugin is not used, but I assume that it searches not only the document title but also in content.

Go to plugin settings and the mood that he was only looking at the title records.
thank you very much, now I will try - joey.Maggio commented on June 3rd 19 at 21:08
What plugin is that? - joey.Maggio commented on June 3rd 19 at 21:11

Find more questions by tags WordPress