• Resolved sky19er

    (@sky19er)


    Hi — is there a way to either restrict search/indexing to post titles only, or maybe alternatively just exclude the content, so only titles are indexed/searchable? I can’t seem to find a solution for this via google or the support forums. Thanks and let me know if you have any questions!

    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)

    Here’s how you can stop Relevanssi from indexing content. Add this to your site (in theme functions.php, in a custom plugin or in a code snippet):

    add_filter( 'relevanssi_index_content', '__return_false' );

    Then just rebuild the index.

    Thread Starter sky19er

    (@sky19er)

    fantastic — thanks so much!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘restrict search to post titles only, or exclude content’ is closed to new replies.