Support » Fixing WordPress » Search not on index

  • I need the search function to be located not on the index.php file but on another file (called tools.php). Just copying what I had on index.php doesn’t work. Do I need a special “include” tag or something?
    Thanks,
    Loauc.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You need the top lines from index.php – the ones that say not to be removed. You’ll need to get the path correct too.

    Thread Starter loauc

    (@loauc)

    For path you mean the action’s form?
    <form method="get" id="searchform" action="<?php echo $PHP_SELF; ?>">

    Sorry … no, I was vague there.
    These are the lines :
    <?php
    /* Don't remove this line. */
    require('./wp-blog-header.php');
    ?>

    If your page is outside of your wp directory, it’s the path to wp-blog-header that needs to be altered.

    Thread Starter loauc

    (@loauc)

    I’ve just checked several times and I find everything looking good but still nothing. I type a known word (one I know is inside some posts) and when I press GO nothing happens.
    Have a look, here’s the URL:
    http://domovolcanico.com/felixe/archivo.php

    Thread Starter loauc

    (@loauc)

    I found out it works indeed but not on every word. Very strange.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Search not on index’ is closed to new replies.