WordPress comes with its own built-in search functionality but that functionality is limited — it's certainly not Google! WP Site Search is powered by the Google search engine, so once you have WP Site Search configured and Google has crawled your site, it's a good idea to redirect default WordPress search engine queries to WP […]
KB » Docs
Knowledge Base Articles
Setting a ‘Search’ Page
When you install WP Site Search, it automatically creates a new Page in WordPress with the slug /search and configures itself to use that Page to serve all WP Site Search results from. In the content of this newly created Page, a required shortcode is added: That shortcode must exist for searches to be handled […]
Creating Custom Search Tabs
Sometimes a visitor is searching for something specific and it can help if you provide them with a way to narrow the results to a particular type of content. So for instance, instead of searching your entire site for a keyword or phrase, I could search KB Articles, or Forums, or Blog Posts, etc. This […]
Protecting BuddyPress Areas
Protecting a Post of any type (e.g., Post, Page, Product, bbPress Forum, Topic, Reply) will protect the Permalink leading to that Post. It will also protect any additional Endpoints, and any child Posts in a hierarchy. For instance, protecting a parent Page also protects any child Pages, protecting a bbPress Forum also protects all Topics/Replies […]
Protecting bbPress Forums
Protecting a Post of any type (e.g., Post, Page, Product, bbPress Forum, Topic, Reply) will protect the permalink leading to that Post. It will also protect any child Posts in a hierarchy. For instance, protecting a parent Page also protects any child Pages, and protecting a bbPress Forum also protects all Topics/Replies in that Forum. […]
WRegx (Watered-Down Regex)
True Regular Expressions (i.e., the full syntax) can be very handy for a variety of reasons. However, it is also quite complex. More complex than what most users need. So for that reason, we support a custom, watered-down version of regex. We call it WRegx™. It provides a nice balance between flexibility and simplicity. WRegx […]
WooCommerce Compatibility
The Shortcode offers WooCommerce compatibility as well. This is achieved through special Shortcode Attributes that are designed to work exclusively with the WooCommerce plugin for WordPress. Below is a list of Shortcode Attributes that are compatible with WooCommerce. Attributes that Require WooCommerce current_user_is_paying_customer="{bool}" current_user_bought_product="{ID|SKU|expr}" current_user_can_download="{ID|SKU|expr}" All WooCommerce-Compatible Attributes php="{raw}" (powerful ) current_user_is_logged_in="{bool}" current_user_can="{capability|expr}" current_user_is_paying_customer="{bool}" current_user_bought_product="{ID|SKU|expr}" […]
Nesting Conditional Shortcodes
The idea is that you have a conditional check via the Shortcode. When the condition is true and content is displayed by that Shortcode, you might have another nested Shortcode within that particular block that checks something else. While this is absolutely possible, it requires an underscore _ prefix as outlined below. Example 1 (Bad/Invalid) […]
Simple Expressions
Simple Expressions are supported by some Shortcode Attributes. They allow you to check multiple conditions within the context of a supporting Attribute, using logical operators such as AND, OR. You can also group conditions using round brackets, much like you would in a raw PHP expression. Attributes Supporting Simple Expressions current_user_can="{capability|expr}" current_user_bought_product="{ID|SKU|expr}" current_user_can_download="{ID|SKU|expr}" current_user_meta="{key|expr}" current_user_option="{key|expr}" […]
Arbitrary Custom Attributes
In addition to all of the Attributes that come with the Shortcode, you can also convert any PHP function into a Shortcode Attribute automatically. This functionality is disabled by default, but you can easily enable it from the plugin options page in WordPress. This feature packs a lot of powerful functionality! When Arbitrary Attributes are […]