• saddie.dean

    (@saddiedean)


    Hi.
    I have a wordpress website in which I have customized my search.php page, archive.php page, single.php page according to custom posts search only and have added html tables in these pages for styling the search results to come in table.
    I want to use another search in my header file which searches keywords on whole website. I tried the default search form in my custom page:

    <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
    	<input type="text" class="field" name="s" id="s" value="<?php _e('Enter keywords...', 'cp') ?>" onfocus="if (this.value == '<?php _e('Enter keywords...', 'cp') ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Enter keywords...', 'cp') ?>';}" />
    	<input type="hidden" name="submit" value="" />
    </form>

    When I use this, the result also comes in the html tables I used for custom post searching.

  • The topic ‘Making custom search without using default wordpress search’ is closed to new replies.