Skip Navigation

[Resolved] Create a search output for multiple CPT with different styling

This support ticket is created 6 years, 11 months ago. 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.

This topic contains 1 reply, has 1 voice.

Last updated by darmaJ-2 6 years, 11 months ago.

Author
Posts
#601149

Hi, I have create a website that have 3 CPT (let say : Article, Consultation, and Disease) that already have some custom post field inside it also. In the homepage I want to add a custom search field that can search all the 3 CPT and make a search output in another page that divided into a 3 section for each CPT.

I already set up the Relevanssi and Text Search for searching the custom field, and it works fine. What I want to ask is how to make a different styling for each CPT in the single Views ?

I already tried with making 3 Views for each CPT in the designated page of the search output, but it just worked for Title and Content field, not with the Custom Post Field that each CPT have, I noticed that the search for custom post field just worked in the same Views of original Views that have the search field in the homepage, but I don't know to style each CPT in the single VIews.

#601153

Sorry, I already solved it, I forget to turn on the custom post field search in the filter menu in each Views