• Resolved owlindia

    (@owlindia)


    Hello,

    I would like to exclude a certain part of a page from the search results.

    At the moment I am using your plugin and don’t know how to exclude the div id from the search results.

    Could you help me out in this problem please?

    Jay

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    One way is to use the [noindex] shortcode, any content wrapped inside these shortcodes is excluded from the Relevanssi index.

    Another way is to add a filter on the relevanssi_post_content filter hook, that hook filters all post content before Relevanssi sees it. You can do whatever you want with the content, it’s easy to remove things there.

    Thread Starter owlindia

    (@owlindia)

    Thanks a lot!! The [noindex] shortcode worked perfectly for me!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to exclude a certain div id from search results?’ is closed to new replies.