Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Grouping by Post, Content Type and Custom Groups
This topic contains 2 replies, has 2 voices, and was last updated by nickchomey18 1 year, 5 months ago.
- October 6, 2021 at 4:15 am #35025
I would like to add a site-wide search to my BuddyBoss (buddypress + bbpress + extra features) website. I have configured a search instance that returns the appropriate results, however I cannot get the Grouping to work as desired via the menus.
I can either select to group by post type or content type, but the search encompasses both – posts such as posts, pages, forum topics etc… – and content type such as BuddyPress activities.
Is there a way to combine these grouping types or even add my own groups via code? BuddyBoss has various specific activity types such as Documents, Photos, Videos, and they can also be posted in a personal activity feed or a group’s activity feed.
An alternative is that BuddyBoss’ search functionality has its own template system that generates groupings with tabs. Would it be more feasible or appropriate to try to pass the results from ASP to that?
Attachments:You must be logged in to view attached files.October 6, 2021 at 1:40 pm #35038
Well the only way to make this depth of customization is via a custom code. The asp_result_groups hook documentation may help you with that.Best,
With that you have basically access to the final groups, make changes to it, add new ones, unset results etc..
If you like my products, don't forget to rate them on codecanyon :)
October 6, 2021 at 10:30 pm #35048
Thank you. I’m not sure why I didn’t see that hook/documentation – it should serve my purposes. I’ll tinker with it for a while and let you know if I have any specific questions.
You must be logged in to reply to this topic.