• Hello!

    I’m still struggling how to force Custom fields search results in to custom search.php page rather than index page.

    Hear is explanation:
    http://wordpress.org/support/topic/what-conditional-tag-can-i-use-to-identify-the-wp-custom-fields-search-results

    But no idea how to implement:
    <?php if(function_exists(‘wp_custom_fields_search’))
    wp_custom_fields_search(‘my-present’); ?>

    with

    <form method=”get” id=”searchform” action=”<?php bloginfo(‘home’); ?>/”>
    <input type=”text” name=”s” id=”s” value=”Search everything…” onblur=”if(this.value==”) this.value=’Search’;” onfocus=”if(this.value==’Search everything…’) this.value=”;” />
    <input type=”hidden” name=”site_section” value=”blog” class=”hidden” />
    <button type=”submit” id=”searchsubmit” value=”Search” class=”submit”>Submit</button>
    </form>

    Desperately looking for answer…please.

Viewing 1 replies (of 1 total)
  • Thread Starter Piotr

    (@squatters)

    Ok. I figure out this. But it’s still display results in it’s weard way instead of my own search template.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Custom Fields Search] How to force to publish in search.php?’ is closed to new replies.