Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › BBpress
- This topic has 4 replies, 2 voices, and was last updated 8 years, 3 months ago by
conceptstore.
-
AuthorPosts
-
March 5, 2018 at 12:28 pm #16994
conceptstore
ParticipantHello,
We have bought and installed the Ajax Search Pro plugin and wanted to find out a little more info with regards to working with bbpress.
We’ve installed it on a site and set it up so it works/seraches only within bbpress and so far its working fine but we wanted each forum to become a search filter with the ajax search plugin.eg. List of forums to search within.
Forum 1
Forum 2
Forum 3Would you have any idea how this might be possible as the filters so far are grouping all forums into one option. If not any help, advice or redirection to any other information that could help us would be appreciated.
Thank you very much.
Regards
Chaten
March 5, 2018 at 3:10 pm #16995Ernest Marcinko
KeymasterHi Chaten,
At first I thought this might not be possible, but then I have looked into this in more details on my test environment, and I have found that bbPress assigns a custom field named ‘_bbp_forum_id’ to each topic and reply.
This means, that a custom field filter can be used to filter the topics and replies by forums. Please follow the steps below to create such a filter.1. First you will have to get the IDs of the forums. To do that, click on the ‘edit’ button under the Forums menu. The forum editor will open, and in the browsers URL bar, you will be able to see the forum ID. Take a note of all the forum names and the IDs, you will need them.
2. Now, under the Frontend Search Settings -> Custom fields panel you will have to create a new custom field based filter. If you need more information about custom field filters, check this documentation first.
3. Now, in my case the forum IDs were 406 and 411, so I have made the following filter: https://i.imgur.com/Ns8u55v.png
This is where the forum IDs and the names were needed. My drop-down values textbox contained this text:[html]||Choose a forum**
406||Test forum 1
411||Test forum 2[/html]4. Also, make sure that the settings are enabled and visible. I am using this configuration: https://i.imgur.com/NwnqPIZ.png
5. This resulted in the following layout for me: https://i.imgur.com/5taEzLO.png
Basically a simple drop-down box with a forum selection.I hope this helps!
March 5, 2018 at 3:17 pm #16996conceptstore
ParticipantHello Ernest,
Thank you very much. I literally just figured out the the same solution as you have given. I watched your custom fields video and found the bbprress_forum_id custom field in your plugin. I used the ID’s and it worked.! I was just about to respond back to you and provide the solution I found, only to find that you figured out the same thing.
Thank you very much once again for your time and help. It’s apreciated.
Regards
Chaten
March 5, 2018 at 3:22 pm #16997Ernest Marcinko
KeymasterYou cannot access this content.
March 5, 2018 at 3:44 pm #17001conceptstore
ParticipantYou cannot access this content.
-
AuthorPosts
- The topic ‘BBpress’ is closed to new replies.