SearchWP Shortcodes

Product ID: 4569
By: OryMai
0
Add to compare

Original price was: $ 54.00.Current price is: $ 3.49.

Sold by
OryMai
Compatible With
Software Version
Tags:
  • Description
  • Disclaimer
  • Reviews

Searchwp Shortcodes

This extension provides Shortcodes that generate both search forms and results pages for SearchWP search engines. It’s useful if you’re not comfortable (or able) to edit theme files directly to implement your search form(s) and results loops.

After activating Shortcodes, the following will be available to you:

Shortcode Attribute(s)
searchwp_search_form
Outputs a search form for a specific search engine
target — The form action (Default is the existing permalink)
engine — Search engine name (Default is default)
var — The search query variable name (Default is swpquery)
button_text — Form button text (Default is Search)
placeholder — Form input placeholder text (Default is Search)
searchwp_search_results
Outputs the list of search results once a search has been submitted
engine — Search engine name (Default is default)
posts_per_page — How many posts per page to display Note that this is not a self-closing Shortcode, the markup for each search result should be nested inside, see sample below for example
var — The search query variable name (Default is swpquery)
searchwp_search_result_link
Outputs a link to the current search result
direct — Either “true” or “false”, when true link directly to the permalink, if it’s an attachment link directly to it’s URL, not the parent page
searchwp_search_result_excerpt
Outputs the excerpt for the current search result
None
searchwp_search_results_none
Output if no search results were found
NoneNote that this is not a self-closing Shortcode, the markup for each search result should be nested inside, see sample below for example
searchwp_search_results_pagination
Output pagination of search results
engine — Search engine name (Default is default)
direction — Either “prev” or “next”
link_text — The text to use in the link
var — The search query variable name (Default is swpquery)
searchwp_search_results_paginate_links
Output paginated links for search results
engine — Search engine name (Default is default)
var — The search query variable name (Default is swpquery)In addition to the above, arguments from paginate_links are also supported.
searchwp_search_result_image
Output Featured Image for the current result
size — Image size (Default is thumb)
searchwp_search_result_permalink
Output permalink for the current result
direct — Whether to link directly to Media files (Default is 'true')

Here is a sample of a comprehensive implementation of Shortcodes that searches a supplemental engine with a name of my_test_engine :

<h3>Search Form</h3>
[searchwp_search_form engine=”my_test_engine” target=”http://example.com/supplemental-search/” var=”searchvar” button_text=”Find Results”]
<div class=”search-results-wrapper>
Total Results: [searchwp_total_results engine=”my_test_engine” var=”searchvar”]
[searchwp_search_results engine=”my_test_engine” var=”searchvar” posts_per_page=2]
<h2>[searchwp_search_result_link direct=”true”]</h2>
[searchwp_search_result_excerpt]
[/searchwp_search_results]
</div>
<div class=”no-search-results-found>
[searchwp_search_results_none]
No results found, please search again.
[/searchwp_search_results_none]
</div>
<div class=”search-results-pagination>
[searchwp_search_results_pagination direction=”prev” link_text=”Previous” var=”searchvar” engine=”my_test_engine”]
[searchwp_search_results_pagination direction=”next” link_text=”Next” var=”searchvar” engine=”my_test_engine”]
</div>
view rawgistfile1.html hosted with ❤ by GitHub

You can customize the attributes as per the table above.

> We do not offer any additional services from authors, such as product customization or license keys. We are not affiliated or associated in any way with any third party developers or trademark owners.
> This product is intended for testing purposes only. To respect the original developer, we still recommend you to purchase the original product through the official sales site.
> 100% Clean Files & Free From Viruses & Free From Malware
> Unlimited Use
> Instant Download

User Reviews

0.0 out of 5
0
0
0
0
0
Write a review

There are no reviews yet.

Be the first to review “SearchWP Shortcodes”

Original price was: $ 54.00.Current price is: $ 3.49.

Sold by
OryMai
Compatible With
Software Version
Tags:
Garudeya.com
Logo
Compare items
  • Total (0)
Compare
0
Shopping cart