Skip Navigation

[Résolu] Exclude Toolset Custom Post type from search

This support ticket is created Il y a 3 années et 7 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par Adrian Il y a 3 années et 7 mois.

Assisté par: Shane.

Auteur
Publications
#2019617

Hi,

I need to exclude a custom post type from the standard wordpress search. How can I do that?

Thank you,
A

#2019675

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Adrian,

Thank you for getting in touch.

There is an exclude from search option on the post type when you go to Toolset -> Post Types and edit your custom post type.

Scroll to Options section and ensure that exclude_from_search is checked.

Once you've done this then the post type will be excluded from the wordpress default search.

Thanks,
Shane

#2019835

My issue is resolved now. Thank you!
Didn't see the option. All set now!