action="<?php esc_url( home_url( "https://wordpress.stackexchange.com/" ) ); ?>">
You forgot to echo
out the URL, making the action attribute this:
action=""
This means the form is submitted to the current page, and since the current page is a category archive, it appends the s
parameter to search inside that archive.
Normally you would instead use the homepage URL where WP will then load the search.php
template and do a full search
Related Posts:
- Using classes instead of global functions in functions.php
- Template for individual post designs
- Front End Post Submit Form
- Upgrading a custom theme through the Dashboard
- Theme Customizer not loading
- Version control for both Vagrant config and themes being developed [closed]
- How to correctly add JQuery in a WP theme?
- How to add a second stylesheet to the editor
- WP 3.1 upgrade breaks AutoFocus+ theme
- How to make theme elements customizable in wordpress?
- Limitations when modifying wp_title with a filter
- How to edit theme functions file to modify pagination?
- Customizer: save setting/control content to post/page
- Customize how a WordPress theme looks like in the Theme Selector
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Integrate WooCommerce theme with a WordPress theme [closed]
- Widget Option is Missing
- How do you use WordPress for a website that’s not in a blog format?
- Customizer: get_preview_url() inside customize_save_after hook
- New to WordPress – Read the Codex, Other Docs; Still Confused
- Create theme for mobile phones and tablets only?
- How to add custom page elements to the WYSIWYG editor?
- Can’t change theme name
- Is hand coding required at all?
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- How to dowload and edit content of a website
- Any way to permanently translate themes?
- How to prevent XSS attack in wordpress theme?
- Best strategy for providing theme options using customizer
- How Does One Create a Global Variable Repository
- How to convert that page to a wordpress template? [closed]
- Turning WordPress Into full-featured website?
- The the_post_thumbnail without srcset?
- after_setup_theme always runs
- WordPress API Menu/Submenu Order
- What WP folder can I use to write files to?
- Why I can’t add a CSS style in this WordPress theme?
- register_sidebar ignores ‘id’ and ‘class’
- Display a different theme for not logged-in users
- Add colors to existing color palette without replacing it
- Single Page WordPress Theme – Using page templates
- Returning Variables back into a template
- new theme permissions don’t allow me to edit
- How to add custom template tag in wordpress theme?
- Which theme foundry has clean coded themes, where code is poetry [closed]
- What page should I use for a contact form?
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- How can a Theme Contain no Header File or Footer File?
- Modify the Additional CSS section (adding a disclaimer)
- Some translations do not work in my template class
- WordPress not registering Theme Customization Section
- Why is the Links Manager visible?
- How to remove a file included in parent theme with locate_template() via child theme?
- qTranslate with my own theme and settings
- Stylesheet not linking
- How to control layout of posts on page?
- Customizer: Output default value in Customizer CSS
- Override template file i subfolders
- Include Parent functions.php in Child Theme functions.php
- How to display all subpages and short by year
- Where am I doing wrong in my theme menu?
- How can my theme allow users to take advantage of advanced html tags in posts
- how to get the post attachement image in full size?
- Best way to develop a new theme on a live site, with new content? [closed]
- Set a featured image as a replacement to the header image
- Custom theme: How to call archive-post.php for viewing blog posts
- How to transfer one domain to another domain without losing theme options (customizer)?
- Theme Customizer not displaying saved values in wp_head (CSS)
- How can I hard code my sidebar?
- Thesis -style Navigation
- How can I wrap all blog posts image with
- Valid SQL query not returning results
- Change Image Sizes for Mobile Theme
- Recommended sidebar / content widths
- Converting a theme to a child theme in a network
- Is there a list of default generated Gutenberg block CSS? Unable to align video blocks
- How to change listing type permlink?
- Adding popup support to the theme
- Calling a WP Plugin Function’s Variable in Theme Template [duplicate]
- How to make updatable custom WordPress theme?
- How can I access variables from theme in child theme? [closed]
- Local variable name in setup_postdata()
- Creating a Single Page Theme correctly
- Is it possible to echo a woocommerce prouct attribute discription?
- Child theme menu not appearing in Twenty Seventeen
- How do I remove header/page-title image in farvis theme? [closed]
- how to edit woocommerce checkout page
- How to link post image to post link?
- On wordpress, how do i require specific dimensions from user uploads only
- Slider should be display in home template [closed]
- Modify comments_popup_link output
- Can you create a custom page with content in the center already defined?
- How to migrate the menu from the site on my own theme in WordPress?
- RSS feed url showing page not found. How to solve it?
- Toolbox theme using printif statement – help needed understanding code block
- php file child theme directory not overriding parent theme php file [duplicate]
- How do I change the tagline input to textarea?
- Custom Single Page Portfolio Theme [closed]
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- My wordpress site memory exhausted more than 1GB trying to debug with default