wpgb_render_facet
This function allows to render a facet by passing as argument its id and the grid id to filter.
Argument | Type | Description |
id | integer | Facet id |
grid | integer|string | Grid id or template id/name to filter |
[pastacode lang=”php” manual=”%2F%2F%20Render%20facet%20id%201%20to%20filter%20grid%20id%202.%0Awpgb_render_facet(%0A%09%5B%20%0A%0A%09%09’id’%20%3D%3E%201%2C%20%2F%2F%20Facet%20id.%0A%09%09’grid’%20%3D%3E%202%2C%20%2F%2F%20Grid%20or%20template%20id.%20%0A%09%5D%0A)%3B” message=”” highlight=”” provider=”manual”/]