Excluding a forum

Ivory Search Forums Support Excluding a forum

Viewing 10 reply threads

You must be logged in to create new topic or reply to the topic.

  • Author
    Posts
    • #4973
      john
      Participant
      • Topics: 1
      • Replies: 5

      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.

      Excluding

      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

    • #4974
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,735

      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

    • #4975
      john
      Participant
      • Topics: 1
      • Replies: 5

      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

    • #4976
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,735

      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.

    • #4977
      john
      Participant
      • Topics: 1
      • Replies: 5

      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

    • #4987
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,735

      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.

    • #4996
      john
      Participant
      • Topics: 1
      • Replies: 5

      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

    • #4997
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,735

      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.

      Child Themes


      https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/

    • #5001
      john
      Participant
      • Topics: 1
      • Replies: 5

      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

    • #5005
      john
      Participant
      • Topics: 1
      • Replies: 5

      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

    • #5008
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,735

      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!

Viewing 10 reply threads

You must be logged in to create new topic or reply to the topic.