Tuesday, September 27, 2022
HomeWordPress DevelopmentHow do I present a search kind for a selected put up...

How do I present a search kind for a selected put up sort, that’s able to looking inside customized fields of the desired CPT?


I am constructing a web site that may have 4 put up sorts:
The default ‘web page’ and ‘put up’ put up sorts. And two customized put up sorts.

The 2 customized put up sorts may have customized fields and customized taxonomies.

I might like to supply three search varieties: the default kind (for ‘web page’ and ‘put up’ information), and one kind for every of the customized put up sorts.

For the put up sorts ‘web page’ and ‘put up’, I can simply use (or modify) get_search_form().

Nevertheless, the default WordPress kind would not checklist posts of customized sorts, and would not search customized subject information.

So how do I present this to my customers: For every customized put up sort, a search kind that may search solely that sort, and that may return outcomes that embrace information from the customized fields of it is particular put up sort?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments