Viewing 3 replies - 1 through 3 (of 3 total)
  • Page ID is the unique number that comes with the page, and can be found in the permalink of the page, after page_id=.

    You can put the code on a page, or a widget in the sidebar.

    Thread Starter raincao

    (@raincao)

    Thank you. The permalink is: https://raincao.com/search-results/

    I didn’t see page_id= in the permalink. Where can I find the Page ID? Or can I just use the permalink like this:<a href="https://raincao.com/search-results/ " title="Search Page">Search Page</a>

    I put <?php get_search_form(); ?> in the sidebar.php, and the code in the searchform.php is like this:

    <form role="search" method="get" id="searchform" action="https://raincao.com/diaries/">
            <input class="searchbox" type="text" value="" name="s" id="s" size="15"/><br />
            <input class="searchbutton" type="submit" id="searchsubmit" value="Search" />
    </form>

    Where should I put the permalink code to? Sidebar.php or Searchform.php?

    Thread Starter raincao

    (@raincao)

    Is there anyone knows it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wordpress search page’ is closed to new replies.