Exclude custom post type from autocomplete on specific post type
-
Hello guys, thanks for this plugin, makes it easy to set up things fast instead of doing it the manual way.
Now, to the point, I am currently using the autocomplete function with the “posts” indexed and a custom post type with the name of “surs”, I have two search forms in both archive pages, but I have a problem; I would like to show results from the autocomplete according to the specific post type only, for example, if I am in “posts” I would like to show those, the same thing with “surs”.
I looked through the documentation, but I only found hooks about the search page and other stuff, that’s why I am asking here haha.
Kind regards,
Miguel
The topic ‘Exclude custom post type from autocomplete on specific post type’ is closed to new replies.