Just like @cjbj says, use home_url()
without the slash.
home_url( $path, $scheme ); – $path (string) (optional) Path relative to the home URL.
instead of home_url()
you can use bloginfo('url')
to get the root/home of your wordpress site.
Related Posts:
- Search is always exact [closed]
- Empty search returns home page, how to return not found search page?
- How to make search include data from wp_postmeta?
- How to look at code in WordPress repositories without downloading?
- Insert DIV container below 1st search result
- How to make WordPress search prioritise page titles?
- How to add the author search in the default wordpress search?
- How to search for users based on added user metadata
- Search by Post ID and display content of the post in search result
- Let user change posts per page
- Turning Broken URLs Into Search Terms?
- Search uses index.php instead of search.php on renaming search field from “s”
- Search results URL without query string variables
- How to control WordPress Search Behavior?
- Changing the default WordPress search action
- Set default text for the_search_query();
- Changing the search results destination URL
- What are the different options for excluding certain post types from search results?
- Search in post title and custom fields
- How to change users smart quotes to dumb quotes in search bar?
- Making a list of post tags in string
- Trim the search result around the search word
- Searching custom fields is removing search on the post_title column
- Edit search results in order to advertise
- Is there a wordpress plugin enabling an autocomplete search box, then jump to page?
- Date_query problems
- WordPress, fetching users with an exact match in a string of comma separated values in user_meta
- search form redirects to home
- How can I hide uncategorized products from search results?
- Exclude html from search results (image names, etc.)?
- documentation for wordpress 3.7 keyword
- WordPress Search not picking up text provided by a Plugin
- How to exclude pages from WP search based on page title
- What does wordpress search, search?
- How to combine two get_users() array?
- Search not working. Appending a “
- Search posts by Tag
- Improved WordPress search functionality and search form plugin
- Change Twentyeleven Search Form Text
- redirected to the login screen when I do a blank search
- Add Google custom search to wordpress.com [closed]
- Changing default wp search string
- How do I exclude a specific page (and child pages) from the search results?
- Sort WP Search results by date
- How to pass data to wordpress page (without GET parameter)
- Check If search query contains something?
- Localization of WP theme
- Show search count by post type
- How to have multiple instances of the same taxonomy in a search form
- WP + Google analytics = /search?
- Search result count not matching actual result
- How to search for post content and attached file names
- Why does this search.php not work?
- Breadcrumbs: Search result not displayed when static page is on top
- Can’t place two custom post types into the WordPress search query?
- Searching for one letter returns extra empty post
- How to create a search form with multiple search fields
- WordPress custom search only works from some pages
- REST API: Search products only in the names
- Bots using internal wordpress search
- WordPress search – Display the paragraph which has the searched word/term
- Altering search results to handle a post meta field not working in current WordPress
- WordPress Search by tags
- How to Integrate Live search in WordPress?
- How to create a custom filter in WordPress?
- WordPress search post using unicode
- Create search box on Archive Custom post type
- How to pass variable to get_search_form()?
- Why the search results are wrong in search posts form?
- Search isn’t displaying all results
- How to use regular page template for search results?
- Search only blog posts on blog page
- Search: display all found matches inside post
- Auto search field without buttons, shows first result from search page
- Can I set up a search box that uses fields?
- How to Search Users on the Base of Latitude and Longitude in Users meta_key and meta_value
- Search taxonomy terms, not posts
- Returning the entire line of a custom search result filter
- search does not yield access restricted results
- Customizing Home Page with Pagelines Platform
- Search Limited to Categories Not Working
- Google Search and Own Website Search?
- How we filter the search base on post-meta tags
- How to display articles based on composed tag
- Make search result returned only from tags! [duplicate]
- Form Data Causes “Page Not Found”
- Search query with quotes
- WordPress search form and input type=”image”
- Search options/filters
- Search Results with googlemaps
- How to search pdf attachment?
- Website Search Results Not Showing Images
- How to search for articles containing two words?
- Wp eCommerce meta information search [closed]
- Search results truncated
- “feed” added at the end of my URLs
- Disable – Post search field – for non-admin roles in WP dashboard
- Search results heading and counter not working – Oxygen Builder
- How to quickly search posts by title in Admin interface
- Blocking spambots from Search form