• I’ve successfully inserted the WP sidebar onto static pages (not to be confused with WP “pages”) — I mean fully editable html pages.

    The problem is, the search function just bounces back to that page when used. I’m not trying to get the search function to search the static pages — just to work like it does on blog posts.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The WP search searches the posts in the database. I assume your “fully editable html pages” have nothing to do with the database. What should the search gizmo search for ? ??

    Sounds like he’s trying to execute the search for the blog portion from the static page.

    Thread Starter red_eagle

    (@red_eagle)

    Yes, exactly. I know I can’t make it search “non-database” pages.

    You’ll have to fix the code so that it does not “action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>”

    but to path-to-wp/index.php

    I’m trying to do something similiar. I have a “page” as WP calls it which has links to a number of uploaded documents that are in .html. I would like to be able to “search” and have the search return at least the names of the links to the pages. Would the code in tha last post do that? If I change it will mess up the regular blog search? How would I write the code to direct it? Bear with me, new at this.

    Mare

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Making Search work on static pages’ is closed to new replies.