gdkob_search

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

This shortcode is used to display live search form.

Attributes

Shortcode has several attributes:

  • class: additional CSS class name to add
  • products: ID’s for products to limit search to. This is optional, and it can be left empty, and in that case, search will be for all products.

Example #1

Shortcode:

[gdkob_live_search]

Output:

Example #2

Limit search to the product with ID 50085.

Shortcode:

[gdkob_live_search products="50085"]

Output:

0
0
430
Rate this reference

You are not allowed to rate this post.

Leave a Comment