Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Feature requests for SearchWP Shortcodes extension
[searchwp_search_form engine="employee_directory" placeholder="Search for a name or custom field"] <!-- new -->
[searchwp_search_results_found] <!-- new -->
<div class="search-results-wrapper">
<h3>Search Results</h3>
[searchwp_search_results engine="employee_directory" posts_per_page=20]
<h4>[searchwp_search_result_link direct="true"]</h4>
[searchwp_search_result_excerpt]
[/searchwp_search_results]
</div>
<div class="search-results-pagination">
[searchwp_search_results_pagination direction="prev" link_text="Previous" engine="employee_directory"]
[searchwp_search_results_pagination direction="next" link_text="Next" engine="employee_directory"]
</div>
[/searchwp_search_results_found]
[searchwp_search_results_none]
<div class="no-search-results-found">
No results found, please search again.
</div>
[/searchwp_search_results_none]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment