WordPress.org

Ready to get started?Download WordPress

Forums

Limit search to posts only (like it used to be!) (5 posts)

  1. Kerosene
    Member
    Posted 5 years ago #

    Is there a way to limit WP searches to posts only - like it used to be back in the old versions of WordPress? I don't want pages showing up when people do a search on my WP site.

  2. mozillaman
    Member
    Posted 5 years ago #

    If you use a search plugin like
    http://wordpress.org/extend/plugins/search-unleashed/
    you can limit pages from being included in the results.

  3. Kerosene
    Member
    Posted 5 years ago #

    Thanks, But is there anyway to do it without using a plugin? I'd prefer to hack the WP files rather than use a plugin.

    If the WP team put it IN (page search), there must be a way to take it OUT :)

  4. trigmed
    Member
    Posted 5 years ago #

    The best (and easiest) way to do it is with a plugin. Hacking the core files will make upgrading a pain.

  5. Kerosene
    Member
    Posted 5 years ago #

    I'd prefer to hack the WP files rather than use a plugin.

    I've looked at Search Unleashed, and it's massive overkill for what I want to do.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.