WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Hide specific pages from search results (7 posts)

  1. pegasus1112
    Member
    Posted 1 year ago #

    We have certain pages that are accessed from outside of our site, but which need to be invisible in search results. I'm using a plugin that adds noindex to those pages. Between that and changing the filename, they are no longer showing up in external search engine results. However, they are still showing up in the internal site search (search box at the top of every page), filename change and all.

    Is there a way I can force the removal of specific pages from the internal search results?

    Since these are pages (not posts), I'm not able to assign them a category and simply exclude that category from the results. And since most of our site is pages (not posts) I can't just exclude all pages. It wouldn't work to add a password to the pages, since they need to be easily accessed by those who have the link to them; and for the same reason, it won't work to simply change them to draft status.

    Here's what I've already tried:
    - Simply Exclude plugin (doesn't seem to work at all)
    - Positioning the pages to exclude under a special parent page and giving that page Private visibility.
    - Exclude Pages plugin (works for menu page listings but not for search results)
    - Easy Noindex Nofollow plugin (helped with external search engines but not with WP site search box)

    Any help with this would be greatly appreciated. Thank you!

  2. dwnmedia sarl
    Member
    Posted 1 year ago #

    Hi

    Have you tried : http://wordpress.org/extend/plugins/search-everything/

    You have full options to exclude pages/posts ID

    Tried and it works. If it doesn't work, your template is buggy.

  3. pegasus1112
    Member
    Posted 1 year ago #

    Thank you so much, dwnfred! Yes, that works. Do you happen to know if there's a limit on how many page IDs you can enter?

  4. dwnmedia sarl
    Member
    Posted 1 year ago #

    i don't think there any limit about that

  5. pegasus1112
    Member
    Posted 1 year ago #

    Thanks very much! :)

  6. pegasus1112
    Member
    Posted 1 year ago #

    Just to clarify, for anyone else having this problem: the Search Everything plugin hides specified pages from the internal search (the search box on each page) but doesn't seem to affect a Google search.

  7. Andrew Rowland
    Member
    Posted 1 year ago #

    Was looking for help filtering specific pages from search results that didnt involve a plugin and found this great article http://speckyboy.com/2010/09/19/10-useful-wordpress-search-code-snippets/

Topic Closed

This topic has been closed to new replies.

About this Topic