Creating custom search is not the easiest of tasks for beginners. You will need templates search.php
and searchform.php
– View Codex. You can then edit searchform.php
and add any fields you need. When the user submits the form it will also add any extra fields you have – so your search url may look something like this /?s=1000&num=5&type=years
(using the Loan Form example given in the question).
Once you have your form set up and submitting correctly you can use a hook such as pre_get_posts
– View Codex combined with some Conditional Tags to test if is_search()
then you can grab your extra inputs: $_GET['num'] $_GET['type']
and modify your query based on the values given.
That’s the gist of it anyway.
Related Posts:
- Passing form inputs into multi-taxonomy query
- Using pre_get_posts to rewrite search query to display posts from multiple taxonomies
- Exclude Specific Term from Search
- WordPress database error: [Not unique table/alias: ‘wp_postmeta’]
- WordPress Search – display taxonomy terms in results
- How to find taxonomy name using only taxonomy TERM ID (or taxonomy term name)
- search query within custom taxonomy term, post title and meta field
- Sort posts by number of matched terms
- Help With issue on pre_get_posts filter in taxonomy
- How to add custom taxonomy to search
- how to create a proper query for getting a list of users with taxonomy related meta key
- Taxonomy.php issue with search and filters
- Extending wordpress search to include excerpts and taxonomies?
- How to filter WordPress search, excluding post in some custom taxonomies?
- how to search in custom fields & custom taxonomy for custom search
- Search by type posts and taxonomy
- $wpdb query a post type within a specific taxonomy term while ordering posts by custom meta value?
- Meta query for a custom taxonomy on attachment
- Creating a custom search form
- How do I keep the page I’m on within the URL when running a search on a taxonomy?
- Add multiple taxonomy filters to edit.php that support search
- How to show the a custom taxonomy term on single post metadata
- Extend & Search Native WordPress Image Galleries With Tags and Taxonomies?
- Custom Taxonomy Not Working When added to WordPress Search
- Search Tool only refreshes Page without showing results
- WordPress thinks my custom taxonomy pages are search pages #seo
- Removing “s” from search with custom parameters
- Custom URLs in Custom Search Results
- Search Query for Multiple Terms In Same Taxonomy
- Use an HTML Element To Filter Taxonomies In WP Search
- WP REST API – get custom taxonomies based on terms & filter
- Why isn’t the ‘no results’ being shown when a query returns no results?
- Clean Custom URL for Serach + Custom Taxonomy
- Advanced search redirecting to another page then filter further
- Search only custom taxonomies
- WordPress autocomplete search with taxonomies
- Geographic search with taxonomy structure [duplicate]
- search using multiple taxonomies and keyword
- Taxonomy or Custom Field
- Multiple Drop-Down custom taxonomies search
- Filter with two id of the same value CPT UI(taxanomies)
- Amend taxonomy to search in wordpress admin
- Include get_term_link inside search
- Product custom taxonomy is not found when space in name
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- Search custom taxonomy via query-string?
- How to exclude woocommerece product category in search results?
- WordPress search form and search result through ACF field in custom taxonomy
- How to show one post content in another post content which has same terms?
- WordPress custom taxonomies new/edit post autocomplete
- Post not showing in my custom advanced search
- Include attachments with a custom taxonomy in search
- Custom taxonomy displayed in search results
- How to perform a search inside a specific taxonomy category
- Custom Taxonomy, shows empty value (home page of website)
- Advanced WordPress search form based on custom taxonomy and custom meta value
- Custom Search only for my Custom Taxonomy Page – data
- Hook to filter based on form value and insert term
- Search and filter with custom field in taxonomy
- Complex Taxonomy scheme
- Custom taxonomy with custom meta value is not sorting correctly (query returns the same value for orderby regardless of sort column click)
- Advanced search form with filters for custom taxonomies and custom fields
- get_terms showing link to category even if all posts are drafts
- How to restrict on selecting child taxonomy
- Is it possible to sort the post based on a custom field?
- How do I get terms as a list for a specific post?
- How get custom field from custom taxonomy?
- Query for custom post type objects in a taxonomy and with a meta value
- Move terms from one taxonomy to another keeping the hierarchy
- Catchable fatal error on custom category post
- If post has ANY term attached to it, get the first one only
- Locale switching with a “language” taxonomy
- query_posts and custom taxonomy posts order
- Hide product categories and taxonomy terms in menu if empty
- How can I highlight a top level dashboard menu item created for a custom taxonomy?
- Custom Taxonomy with tax_query
- How to get custom category’s link?
- Edit custom taxonomy description programatically
- why are the term_id and term_taxonomy_id doesn’t match on custom taxonomies, but are duplicates on categories
- Get taxonomy name for the current post
- How to get posts that contain multiple terms from multiple taxonomies?
- Getting taxonomies associated with a specified post type
- Changing input type from text to multi select dropdown – skill taxonomy
- How to list the taxonomy terms that fit the custom query?
- What’s the best way to add taxonomy’s image in 2017?
- Count of posts by different parameters?
- Add custom taxonomy as a css class
- Wp_query…a type of term a different div
- Need equivalent of single_term_slug
- Issue adding custom taxonomies to custom post type (PHP)
- How to loop custom posts that have an exact match in taxonomy terms?
- True or F False Setting of ‘with_front’ Parameter of Rewrite Is returning Exact Same result
- Filter “get_terms” query
- Error 404 in Custom taxonomy with pagination
- WordPress Taxonomy Permalinks – Custom?
- Need help understanding a rewrite with multi-level taxonomy
- Change Permalink to Value of Custom Field
- Display custom post taxonomies
- Advanced search: roles and multiple taxonomies
- Removing fields from category/taxonomy edit form