Working WOOF with Essential Grid
To make them works together:
- From version 2.1.4 it is possible use Template Essential Extension using attribute tpl_index for [woof_products] shortcode. Install and use this extension https://products-filter.com/extencion/essential-grid/
OR
- create new file in your current wp theme folder (or in child theme folder) and name it for example woo_essential_grid.php
- drop in woo_essential_grid.php next code:
<?php
function woof_essgrid_get_posts($query, $grid_id) { if (isset($_REQUEST['woof_wp_query_args'])) { $query = $_REQUEST['woof_wp_query_args']; } return $query; } add_filter('essgrid_query_caching', '__return_false', 10, 2); add_filter('essgrid_get_posts', 'woof_essgrid_get_posts', 10, 2); echo do_shortcode('[ess_grid alias="woo2"]');
- Create new page where you going make filtering and drop there next shortcode: [woof_products custom_tpl=’themes/twentytwelve/woo_essential_grid.php‘ per_page=12 is_ajax=0]
- attribute columns doesn work in this case – management by the layout is in essential grid plugin the shortcode options page with slug woo2 …
- Look example here
- Save and use ….
Troubles? Ask for Support!