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)
- Code inside conditional is_tax() only working when term has posts
- ACF – Get unique values of array
- Custom column into custom taxonomy (img tag with slug-name as file name)
- Change link of taxonomy when get_the_term_list( is used?
- How to create archive pages for metadata query generated posts (so without taxonomy)?
- Limit Tag Links in Post Content
- register_taxonomy_for_object_type (images) : how to use it ?
- Problem with wp_list_category with custom taxomy
- Custom rewrite url structure for several custom taxonomy (NOT pos_type)
- Restructuring permalink with more than one taxonomies
- How to create a completely functioning separate archive for posts from only 1 or 2 specific categories
- Query by multiple custom taxonomies
- get the custom taxonomy name?
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- Display multiple taxonomies in a function
- Remove taxonomy name and add .html extension in the custom taxonomy term URL
- Remove Custom metabox from particular page template is used
- generate random slug when adding taxonomy
- Auto add custom taxonomy to permalink when save
- setting a custom post type taxonomy term by code
- transfer two existing taxonomy terms into one custom metabox
- How to paginate with an query var appended to permalink?
- Use custom taxonomy terms as parent for pages
- Retrieve & Display User Meta Values from Checkboxes
- Get Highest and Lowest get_term_meta() value from Taxonomy Term
- Get link for taxonomy to show top-level terms
- ACF Custom field not showing in Timber Taxonomy page
- Custom taxonomy if statement
- Custom taxonomies template
- Pre_get_post custom taxonomy combined with custom fields?
- Adding a checkbox field to a (custom) taxonomy
- Passing taxonomy id of taxonomy clicked on one page to another page
- Custom Taxonomy Not Being Recognized by is_tax()
- Hierarchical taxonomies in permalink cause 404 for sub term archive
- Restrict viewing of posts by category, user role
- Restrict user to terms in a custom taxonomy registered for both posts and users
- How can I rewrite a custom taxonomy archive slug
- Custom taxonomy shows full articles
- Country-specific content