Ivory Search › Forums › Support › Excluding a forum
- This topic has 10 replies, 2 voices, and was last updated 4 years, 4 months ago by Ivory Search.
You must be logged in to create new topic or reply to the topic. Click To Login
- AuthorPosts
- June 17, 2020 at 2:15 PM #4973
G’day,
I think I am probably missing the obvious but I can’t figure out how to exclude one of four forums from a search.
I want to exclude the Staff Only forum from searches. What do I actually do next? Highlighting it as shown and saving has no effect.
Thanks in advance,
John
- June 17, 2020 at 2:37 PM #4974
I hope you are well today and thank you for your question.
It seems from your shared screenshot that you have configured the plugin settings correctly and it should exclude the Staff Only forum from search.
I have tested it on my test site and it’s working fine for me using the latest version of the Ivory Search plugin.
Are you searching the forum name or topics contained in the forum?
If you are searching for the topics then you have to also exclude the topics.
Best regards,
Ivory Search Support - June 17, 2020 at 4:42 PM #4975
Thanks for your very quick reply!
I am searching for keywords in topics titles, or content of topics. I really don’t want any content in that one forum to show in a search because it is possible that admin staff may be discussing certain members there.
I appreciate what you say about excluding the topics themselves but this wouldn’t presumably exclude all content in that forum if a new topic was created, unless I went in and manually excluded that topic too? Am I going about things the wrong way?
Yes, I am fine and well thanks, hope all is good at your end too.
Best regards,
John
- June 17, 2020 at 6:26 PM #4976
Currently, you have to select each topic manually to exclude from the search.
I will implement the feature in the future version of the plugin so that all topics of the forum will be automatically excluded from the search.
- June 17, 2020 at 10:23 PM #4977
Oh, that would be fantastic! I will keep an eye out for plugin updates, happy to wait until that time comes.
Very best regards,
John
- June 19, 2020 at 1:51 PM #4987
I have implemented the feature in the latest released plugin version 4.4.11
To use the feature, please update to the latest plugin version and then add the below code in the functions.php file of your child theme.
function func_is_exclude_child(){ return true; } add_filter( 'is_exclude_child', 'func_is_exclude_child' );
Please let me know how it works for you.
Also, please note that if you have configured the search form to search images and exclude any post or page then If you enable the above option then the images or attachments attached to the excluded post/page will also get excluded from the search.
- June 20, 2020 at 2:00 PM #4996
Thank you very much – the speed you have done this is really appreciated.
I will need to do a little research into creating a child them but I’m sure I will find this the perfect solution.
With very best regards,
John
- June 20, 2020 at 6:11 PM #4997
Thank you very much – the speed you have done this is really appreciated.
You are most welcome, I’m glad I was able to help you with this matter. There is no obligation but by your kind words I wonder if I could trouble you to leave a review based on this experience here:
https://wordpress.org/support/plugin/add-search-to-menu/reviews/?filter=5
I’d really appreciate that. 🙂
And if I can be of any further assistance please don’t hesitate to ask.
I will need to do a little research into creating a child them but I’m sure I will find this the perfect solution.
If you use child theme then the custom code will persist even after updating the theme.
You will find more information about the child theme on the below pages.
https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/ - June 20, 2020 at 10:02 PM #5001
Not knowing much about child themes but mine has come up without any of the features I have set up on the site. I cannot possibly set it all up again from scratch. There seems to be very little thorough documentation about child themes, certainly nothing that mentions that issue that I can find. I have no idea if this is normal or not. I’m sorry, but this is all beyond my abilities. Such a shame after all that you have kindly done.
John
- June 21, 2020 at 8:44 AM #5005
Solved!
I don’t need to add a child theme – I put that code into the system using the Snippets plugin and all works perfectly.
Once again many thanks for your time.
Best regards,
John
- June 21, 2020 at 1:15 PM #5008
Awesome great to see you got that achieved using the plugin.
If you have time then please consider posting the plugin review as described in my earlier reply.
Feel free to advise if you have more questions.
Have a fantastic day!
- AuthorPosts
You must be logged in to create new topic or reply to the topic. Click To Login