• michaelmcguk

    (@michaelmcguk)


    Hi,

    Can someone please help me with code for a ‘search engine’ for my WP site?
    Is there just a simple function line I use?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Jeremy Clark

    (@jeremyclark13)

    Just look over the default theme. It has a search function builtin. Or if you just want to add a simple search form to a new theme.

    <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
    <div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
    <input type="submit" id="searchsubmit" value="Search" />
    </div>
    </form>
    Thread Starter michaelmcguk

    (@michaelmcguk)

    Great. Thanks again, you’ve been very helpful. I am new to WordPress having come from a C# and PHP background ??

    Jeremy Clark

    (@jeremyclark13)

    Here is a good place to start learning about wordpress.
    https://codex.www.ads-software.com/New_To_WordPress_-_Where_to_Start

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search engine code?’ is closed to new replies.