X Features Cars Demo Power Plants Demo State Parks Demo Site Showcase Docs Tutorials Add-ons Buy

facetwp_template_use_archive

Overview

This hook is useful if you’re using a shortcode template on an archive page, and want FacetWP to automatically pre-filter based on the current category / tag / term.

Parameters

Usage

add_filter( 'facetwp_template_use_archive', '__return_true' );