Support » Plugin: Relevanssi - A Better Search » Can I exclude “Author” from search results page?

  • I would like the Author to be excluded from search results (see example link to page). I can achieve this via “display:none” but this does not hide it from source code where hackers can see it and use it to attempt access to my site (which has happened). Is there a simple way to achieve this please?

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

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


    The right place to ask this would be on the theme support forums. Relevanssi does not display the author on the search results page, it’s your theme that does it.

    Anyway, in a child theme, override the template-parts/post/content-search.php template with a copy of the template that removes the line


    and you should probably be fine.

Viewing 1 replies (of 1 total)
  • The topic ‘Can I exclude “Author” from search results page?’ is closed to new replies.