Forums

[resolved] Is there code to include pages in searches w/out a plugin? (3 posts)

  1. John Hoff
    Member
    Posted 3 years ago #

    I have a blog I am wanting to include my static pages in my default WordPress search results (currently only blog posts are returned).

    I know there are plugins out there which will do this, but I'm not a big fan of adding a plugin for every little thing which could be done by code.

    Anyone know how to add pages in the returned search results without the use of a plugin?

    Thanks

  2. Mark / t31os
    Moderator
    Posted 3 years ago #

    http://wordpress.org/extend/plugins/search-everything/

    The alternative is to either use the theme functions file (you'll need code, and i'll point you at the plugin above for examples), or edit the core WP files yourself..

    If it were me, i'd take the above plugin and strip out everything i don't need, then keep it as a simple plugin or move the code into the theme functions file.

  3. John Hoff
    Member
    Posted 3 years ago #

    Thanks t31os_, I'll check that out.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags