Ajax Search Pro Documentation
Get Ajax Search Pro!Get SupportKnowledge BaseDevelopment
  • Ajax Search Pro Documentation
  • GDPR and Cookie policy
  • Video Guides
  • Plugin Updates
    • Automatic Updates
      • Activation on Development and Staging environments
      • Managing purchase codes
      • Purchase Code (license key)
    • Manual Updates
    • Safe Update Guide
    • Plugin update issues or errors
    • Disabling update check
  • Installation instructions
    • Uninstallation & Reset
  • Getting started
    • Importing from the Lite version
    • Editor Blocks
    • Search Shortcodes
    • Search Widget
    • Gutenberg and Other Page Editors
    • Replacing the default theme search bar
    • Placing the search shortcode in theme files
    • Search as menu item
    • Custom result box position
    • Custom filters box position
    • Shortcode generator
  • Search Sources
    • Search Engine
    • Post, Page, Product and other Post Type Search
    • Searching Titles, Content, Excerpt
    • Search in custom fields
      • Search By Product SKU
    • Search by categories, tags or other terms
    • Search in Attachments
      • Mime types table
    • Search in File contents (pdf, word, excel etc..)
    • Search in Users
      • User meta fields
    • Limits (number of results)
    • Categories and terms as results
    • Image options
    • Result ordering
    • Peepso Groups & Group activities search
    • Grouping title duplicates
  • Behavior
    • Return/Enter key and Magnifier icon click actions
    • Search logic (primary and secondary)
      • Exact Matches vs Fuzzy Matches
      • Search logics explained
    • Live search triggering events
    • Results page override
    • Results, Archive Page and Shop Live Search and Filter
  • Elementor Integration
    • Elementor Pro Posts Widget Live Filter
    • Elementor Loop Grid Integration
    • Elementor Pro Product Widget Live Filter
    • Custom results page with Elementor Pro
    • Elementor custom search page archive override and live filter
  • Other Integration
    • Jet Engine Listing Grid Integration
  • Multisite Settings
  • Frontend Search Settings & Search Filters
    • Settings layout, position and visibility
    • Generic Selectors
    • Content Type filters
    • Date filters
    • Category and Taxponomy term filters
    • Post type Filters
    • Custom field filters - selectors
    • Search button
    • Reset button
  • Layout Settings
    • Result Layout Types
    • Results information box
    • Results position & snap
    • Content, author, date and description in results
    • More results loader and infinite scroll feature
    • Results behavior
    • Results text keyword highlighter
    • Compact search box layout
    • Auto Populate - Automatic search results on initial page load
  • Autocomplete and Keyword suggestions
    • Autocomplete
    • Results and Keyword suggestions
    • "Try these" - suggested phrases
  • Theme Options - Visual changes to the search bar
    • Theme chooser
    • Preview
    • Search box and input field layout
    • Settings and Magnifier icon
    • Settings dropdown
    • Typography
  • Index Table
    • Generating the index table
    • Enabling index table engine
    • File Content Search Addon
    • Index table FAQ
    • Synonyms
  • Relevance Options
  • Advanced Options and Uses
    • Using the Results shortcode as a custom results page
    • Shortcodes in results content
    • HTML tags in results
    • Primary and Secondary title and description fields
    • Advanced title and Content fields
      • User Search - Advanced Title and Content fields
    • Excluding & Including results
      • Exclude by category or terms
      • Exclude or Include by authors (users)
      • Exclude or Include by date
      • Exclude by Item or ID
      • Include by ID
      • Include by categories or terms (restrict to category)
      • Exclude or Include by custom field values
    • Grouping results
    • Keyword Exception & Exclusions
  • Result priority settings
    • Individual Priorities
    • Priorities by Rules (priority groups)
  • Performance Tuning
    • Fine tuning the search configuration
    • Cache
    • Visual performance
    • Ajax performance tracker
  • Compatibility Settings
    • Javascript Compatibility
  • Google Analytics Integration (GA4)
    • Tracking with Google Site Tag (gtag.js)
    • Tracking with Google Tag Manager
    • Site Search Tracking
  • Troubleshooting
    • Styling issues
    • The response data is missing from the ajax request error message
  • Translating components
    • Translating with WPML
    • Translating with Polylang
  • Pre-Purchase FAQ
  • Plugin API
    • Actions list and usage
    • Filters list and usage
    • asp_query_args filter
    • Theme functions
    • Front-end filters API
    • Javascript API
  • Other Useful Things
    • Additional search keywords for post types
    • Negative keywords
    • Meta box on post editor screen
Powered by GitBook
On this page
  • Preparation
  • Step 1 - Place the search results shortcode to the page you created
  • Step 2 - Search instance configuration
  • Step 3 - Set up the custom URL
  • Step 4 - Test
  1. Advanced Options and Uses

Using the Results shortcode as a custom results page

Custom results page via the results shortcode

PreviousAdvanced Options and UsesNextShortcodes in results content

Last updated 3 years ago

Please note, that this method should not be used as replacement of the default WordPress results page - rather an addition to a custom single page.

Preparation

For this to work, two things are required

  • A search created

  • A page or a post or any custom post type you wish to use

Step 1 - Place the search results shortcode to the page you created

Open up the page or the preferred CPT in the wordpress editor. Copy the results shortcode from the search instance options to the page content. (see screenshots below)

The search bar must be visible on that same page for this to work. You can either add the search bar above the results shortcode, or use it in a different location on this custom page (header, widget, sidebar etc..)

Step 2 - Search instance configuration

Make sure to publish the page and take note of it's url, as we are goint to use it in just a minute. Navigate back to the search isntance options and go to the General Options -> Logic and behaviour panel.

Scroll down to the Trigger and Redirection section, and select the magnifier and return button actions to redirect to a custom URL.

Step 3 - Set up the custom URL

This is the most important step. Take the URL of the results page you created earlier in step 1. In our case it was:

mydomain.com/my-results-page/

Now, take only the link path without the domain section, so in our case

my-results-page/

..and add the ?asp_s={phrase} query parameter to it, so it becomes:

my-results-page/?asp_s={phrase}

That's it! This is the custom URL we need. Let's finish the setup. Go back to the redirection options and copy/paste this URL to the custom redirect URL field.

Step 4 - Test

Go to the site front-end, and try searching for something and hit the Return or Magnifier buttons. The search will redirect to the page with the results shortcode, trigger itself and display the results.

If it does not work then:

  • Make sure the search bar is present on the custom results page, it is required, without it this will not work

  • Clear all your site cache

instance
On the search instance options, click the "Toogle shortcodes for .. " link