FacetWP Blocks Addon v0.3
This add-on lets you display facets alongside supported WordPress blocks, in classic and block themes.
Same brand
More from FacetWP
Facetwp
by FacetWP
Use FacetWP to add faceted search to your eCommerce sites, resource libraries, s...
Facetwp Multilingual Addon
by FacetWP
If you are using WPML, Polylang or Polylang Pro, download and install the Multil...
Facetwp Submit Button
by FacetWP
Add a submit button that redirects to a separate results page We often get asked...
Related items
Related Filter Plugins
Filter Everything Pro
by FilterEverything.Pro
Filter Everything — WordPress & WooCommerce product filter plugin, that allows t...
Search & Filter Pro – The Ultimate Wordpress Filter Plugin (addons included)
by DesignsAndCode
The Ultimate WordPress Filter Plugin
WooCommerce Product Filter Pro
by WooBeWoo
Create and customize filters for your online store using Free WooCommerce Produc...
This add-on lets you display facets alongside supported WordPress blocks, in classic and block themes. Supported blocks The following blocks are supported and can be used to create FacetWP compatible listings: Source/Plugin Block name Block type WordPress Query Loop Posts List Latest Posts WP Query Loop WP Query Loop posts loop WooCommerce Products (Beta)* See warning banner below WP Query Loop GenerateBlocks Query Loop GB Query Loop Kadence Blocks Posts posts loop Stackable Posts posts loop Spectra Post Grid posts loop Spectra Pro Loop Builder* See warning banner below Spectra Query Loop Otter Blocks Posts posts loop Warning:The Blocks add-on currently only supports the exact block types mentioned above. Some plugins build on these block types by adding block variations.
Despite that these block variations sometimes show an “Enable FacetWP” setting, FacetWP does not officially support these blocks. They may or may not work as expected, depending on what block features are changed. Warning:WooCommerce is phasing out support for the Products (Beta) block, and has replaced this block (and other product block types) with a new Product Collection block.
In WooCommerce version 9.1.0 (released on 11 July 2024) and newer, the Products (Beta) block is hidden in the Block Inserter. It will still function if you were already using it on a page, but we’re not sure for how long. FacetWP is also still functioning on this block. We will look into adding support for the new Product Collection block type. Going forward, consider not using the Products (Beta) block type with FacetWP, and keep an eye on this page for support of the Product Collection block.
Warning:Because of recent changes in Spectra, the Spectra Loop Builder block currently has an issue that prevents it from updating when using facets. We are looking into this and will release a fix in due time. Don’t use until this warning is removed. Supported WordPress context This add-on was tested with WordPress v6.2.3 and newer versions. It may or may not work with older versions.
Due to the highly evolving nature of the WordPress Block- and Site Editor, future WordPress updates may unexpectedly break functionality. Let us know if you experience any issues. This add-on expects the Block Editor to be functional. So don’t use any code or plugins to “disable Gutenberg” or reinstate the Classic Editor. Don’t use the Gutenberg plugin You don’t need the Gutenberg plugin anymore to use the WordPress Block Editor.
Gutenberg is now a “beta plugin”, giving access to bleeding-edge and experimental Gutenberg features. It is meant to be used by developers who need to test features of the Block- and Site Editor before they are officially released. As such, this plugin may contain non-final code that is possibly incompatible with FacetWP’s Blocks add-on or other block plugins.
To prevent issues, don’t install, or deactivate the Gutenberg plugin unless you really need it. Usage Follow these steps to set up FacetWP with one of the supported blocks: Download the Blocks add-on from your account page, then install and activate it. Open a new or existing page in the Block Editor, or a template page in the Site Editor (if you are using a block theme), and add one of the supported blocks to the page.
Enable FacetWP for a supported block. When this add-on is active, supported blocks will display an extra “Enable FacetWP” setting in the block settings in the right sidebar. Enable this setting to let FacetWP dynamically filter this block listing with facets. Important:Make sure to use only one FacetWP-enabled block on a page. Using multiple FacetWP-enabled blocks per page is not supported.
Add a FacetWP shortcode to a Shortcode block. Next, add one or more facets to the page. The easiest way is to paste each facet shortcode into a separate Shortcode block. If needed, add pagination with a Pager facet, and/or Sorting with a Sort facet. Note that Pagination blocks are not supported. The WooCommerce Products (Beta) block automatically adds a Pagination block, which needs to be deleted.
If your block is a WordPress-based Query Loop type block, it is possible to add a custom-built No Results block to replace the default “Nothing found” message. If needed, customize/translate the “Nothing found” message or the No Results block content. Using blocks on archive templates In WP v6.7+, enable Query Type “Default” for Query Loop type blocks on archive pages.
In WP pre-v6.7, or for the GenerateBlocks Query Loop block or the WooCommerce Products (Beta) block, enable “Inherit query from template” on archive pages. If you use a supported block on an archive template (in classic as well as block themes), make sure the query is using the native archive query, by enabling Query Type “Default”. In WP versions older than v6.7, and for the GenerateBlocks Query Loop block or the WooCommerce Products (Beta) block, enable “Inherit query from template”.
Note that this setting is only visible in archive templates, and in these supported blocks: WordPress Query Loop block WordPress Posts List block WooCommerce Products (Beta) block GenerateBlocks Query Loop block Let FacetWP ignore archive queries for blocks If you have a reason to use a block on an archive template without enabling the “Default” Query Type or “Inherit query from template” setting, you need to tell FacetWP to ignore the archive query and use the block’s custom query instead. The reason is that otherwise, FacetWP will automatically detect and prioritize the archive query. This can be done with the facetwp_is_main_query hook.
Add the following code to your (child) theme’s functions.php: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) { if ( $query->is_archive() && $query->is_main_query() ) { $is_main_query = false; } return $is_main_query; }, 10, 2 ); Notes: If you set a static page for your posts (blog) page in WP’s “Reading” settings, for that page is_archive() will return false.
For the above code to work on such a posts page, replace is_archive() with is_home(). Similarly, if you want this code to work on a search results page, replace is_archive() with is_search(). Add pagination and sorting This add-on supports using Sort facets and Pager facets, including the Load More Pager facet. It does not support Pagination blocks, or pagination that is added by settings in any of the supported blocks themselves (with one exception: the Spectra Post Grid block’s pagination).
Remove / don’t add Pagination blocks The add-on does not work with a separate Pagination block (which can be added when the child “Post Template” block in a Query Loop type block is selected. Delete the automatically added Pagination block. Use a Pager facet instead. Note that the WooCommerce Products block and some Query Loop / Posts List block layout patterns automatically add a Pagination block.
If this happens, this Pagination block needs to be removed manually, as it will not work. Use a Pager facet instead. GenerateBlocks Query Loop block pagination The GenerateBlocks Query Loop block has a button in the top/floating block toolbar to add pagination. This type of pagination should not be used, it is incompatible with FacetWP. Use a Pager facet instead.
Stackable Posts block pagination If you have Stackable Premium installed, the Stackable Posts block can have a Pagination block or a Load More Button block added (with the + icon at the bottom of the Posts block). Both of these blocks are incompatible with FacetWP. Use a Pager facet instead, which also has a Load More Pager type if needed. Spectra Post Grid block pagination The Spectra Post Grid block’s Pagination settings.
The Spectra Post Grid block has a “Post Pagination” setting. This pagination can be used with FacetWP. If enabled, the “Pagination Type” can be set to “Ajax” or “Normal”. It will work no matter which type you choose, as the add-on will intercept the pagination clicks. Alternatively, you can use a Pager facet. The Spectra Post Grid block’s Page Limit setting.
Note that this block also has a “Page Limit” setting which limits the number of pages in the pagination. Be aware that in Pager facets (of all Pager types, also Result Counts) this setting is ignored. It does work with the block’s own pagination, so if you don’t see all results, make sure the Page Limit is set high enough to show all posts in the listing query.
One other caveat is that this block’s own pagination is repeated when using a “Load more” type Pager facet. So don’t combine the block’s own pagination with a “Load more” facet. Query Loop block structure and block nesting A Query Loop block with an added No Results block. The supported blocks that are marked as “Query Loop type” blocks in the above table are all based on WP’s core Query Loop block structure.
These blocks are a set of nested blocks: they consist of at least a main parent container block and a child Post Template block. This Post Template block determines the contents of each individual post in the loop. It consists of one or more nested child blocks, depending on the initially chosen “layout pattern” and additional blocks you may add. Within the Post Template block, you can build the individual posts however you like.
The main parent block can also contain other direct child blocks, such as a No Results block, as shown in the image above. The nesting structure of a GenerateBlocks Query Loop block. This add-on also supports (deeper) block nesting. All supported blocks can be nested in other container blocks (like Group, Container, Column, or Section blocks). When using a Query Loop type block, its child Post Template block can also be nested in other container blocks if needed, like for example in the GenerateBlocks Query Loop block, where the Post Template block is nested within a Grid block.
Add a custom No Results block Every supported block has a default “Nothing found” message that displays when there are no results (for example when using a Search facet). This message can easily be customized, translated or overridden. Add a No Results block directly before or after the Post Template block. In WordPress-based Query Loop type blocks (so not in the GenerateBlocks Query Loop block) it is also possible to replace the default message with a No Results block containing custom-built content (consisting of other blocks).
To add a No Results block, select a direct child block of the Query Loop block and choose it from the Block Inserter. Note that the WooCommerce Products (Beta) block adds a No Results block automatically. Note:If you don’t see the No Results block in the Block Inserter, make sure to first select a direct child block of the main Query Loop block and try again.
If you add the No Results block as a direct child block of the main Query Loop block, it can be placed before or after the Post Template block. However, if you nest it in another block for some reason, it has to be placed before the Post Template block. By default, the No Results block only contains a Paragraph child block, which you can use to add your custom message.
You can change this block to something else, or add other child blocks to build whatever layout you want to display when the main parent block’s query returns no results. If you need more flexibility, the contents of a No Results block can also be customized or completely overridden with a hook. Nesting No Results blocks A nested No Results block needs to be placed above the Post Template block, not below it.
If the No Results block is nested in another block for some reason, its container needs to be placed before the Post Template block (or its container block if it is nested) in the block tree. If this is not the case, the No Results block will not work and the Query Loop block will show the default no results message. Stand-alone (non-nested) No Results blocks can be placed before or after the Post Template block.
Customize, translate, or override the “Nothing found” message or No Results block content Both the default “Nothing found” message and the contents of a custom No Results block can be changed or translated in various ways. The default “Nothing found” message is a translatable string that can be translated with the internationalization function __() (e.g. with a translation plugin), or with the WordPress gettext filter: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file.
Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_filter( 'gettext', function( $translated_text, $text, $domain ) { if ( 'fwp-front' == $domain ) { if ( 'Nothing found.' == $translated_text ) { $translated_text = 'Niets gevonden.'; } } return $translated_text; }, 10, 3 ); In a multi-lingual site, you can also translate the “Nothing found” message with the facetwp_i18n hook: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file.
Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_filter( 'facetwp_i18n', function( $string ) { if ( isset( FWP()->facet->http_params['lang'] ) ) { $lang = FWP()->facet->http_params['lang']; $translations = []; $translations['nl']['Nothing found.'] = 'Niets gevonden.'; $translations['de']['Nothing found.'] = 'Nichts gefunden.'; if ( isset( $translations[ $lang ][ $string ] ) ) { return $translations[ $lang ][ $string ]; } } return $string; }); Override the “Nothing found” message or No Results block content with a hook The default “Nothing found” message and the contents of a custom No Results block can both also be customized or completely overridden with a hook. The hook to use depends on the block type.
The following snippets need to be added to your (child) theme’s functions.php: WP Query Loop block / WP Posts List block / WooCommerce Products (Beta) block For the WordPress Query Loop block, WordPress Posts List block, and the WooCommerce Products (Beta) block, use: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin.
More infoadd_filter( 'facetwp_blocks_query_loop_no_results', function( $no_results_html ) { // customize $no_results_html, or completely override it: $no_results_html = '
' . facetwp_i18n( __( 'Niets gevonden.', 'fwp-front' ) ) . '
'; return $no_results_html; }, 10 ); WP Latest Posts block For the WordPress Latest Posts block, use: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_filter( 'facetwp_blocks_latest_posts_no_results', function( $no_results_html ) { // customize $no_results_html, or completely override it: $no_results_html = '
' . facetwp_i18n( __( 'Niets gevonden.', 'fwp-front' ) ) . '
'; return $no_results_html; }, 10 ); GenerateBlocks Query Loop block For the GenerateBlocks Query Loop block, use: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_filter( 'facetwp_blocks_gb_query_loop_no_results', function( $no_results_html ) { // customize $no_results_html, or completely override it: $no_results_html = '
' . facetwp_i18n( __( 'Niets gevonden.', 'fwp-front' ) ) . '
'; return $no_results_html; }, 10 ); Kadence Blocks Posts block For the Kadence Blocks Posts block, use: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_filter( 'kadence_blocks_posts_empty_query', function( $no_results_html ) { // customize $no_results_html, or completely override it: $no_results_html = '
' . facetwp_i18n( __( 'Niets gevonden.', 'fwp-front' ) ) . '
'; return $no_results_html; }, 10 ); Stackable Posts block For the Stackable Posts block, use: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_filter( 'facetwp_blocks_stk_posts_no_results', function( $no_results_html ) { // customize $no_results_html, or completely override it: $no_results_html = '
' . facetwp_i18n( __( 'Niets gevonden.', 'fwp-front' ) ) . '
'; return $no_results_html; }, 10 ); Spectra Post Grid block For the Spectra Post Grid block, use: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_filter( 'facetwp_blocks_uagb_postgrid_no_results', function( $no_results_html ) { // customize $no_results_html, or completely override it: $no_results_html = '
' . facetwp_i18n( __( 'Niets gevonden.', 'fwp-front' ) ) . '
'; return $no_results_html; }, 10 ); Add a custom “Nothing Found” message in the Spectra Post Grid block. Note that the above hook also overrides the Spectra Post Grid block’s own “If Posts Not Found” setting, with which you can set a custom “Display Message”. If you leave this setting empty, the default message is “Nothing found.”. Spectra Pro Loop Builder block For the Spectra Pro Loop Builder block, use: How to use custom PHP code?
PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_filter( 'facetwp_blocks_uagb_loop_builder_no_results', function( $no_results_html ) { // customize $no_results_html, or completely override it: $no_results_html = '
' . facetwp_i18n( __( 'Niets gevonden.', 'fwp-front' ) ) . '
'; return $no_results_html; }, 10 ); Otter Blocks Posts block For the Otter Blocks Posts block, use: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_filter( 'facetwp_blocks_themeisle_blocks_posts_no_results', function( $no_results_html ) { // customize $no_results_html, or completely override it: $no_results_html = '
' . facetwp_i18n( __( 'Niets gevonden.', 'fwp-front' ) ) . '
'; return $no_results_html; }, 10 ); Customize block queries To customize a block’s query arguments, you can use a hook. The specific hook to use depends on the block type and its template context. The following snippets need to be added to your (child) theme’s functions.php: Customize Query Loop type block queries For the WordPress Query Loop and Posts List block, and the WooCommerce Products (Beta) block, if used on normal (non-archive) pages, use the query_loop_block_query_vars hook.
This hook only runs for Query Loop type blocks. In this example, we restrict the hook to blocks that are enabled for FacetWP. Add other Conditional Tags to further restrict the hook as needed. This example only runs on a page with ID 123: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin.
More infoadd_filter( 'query_loop_block_query_vars', function( $query, $block, $page ) { if ( is_page(123) && ( strpos( ( $classname = $block->parsed_block['attrs']['className'] ?? '' ), 'facetwp-template') !== false ) ) { // Adapt the is_page() conditional as needed $query['posts_per_page'] = 9; } return $query; }, 11, 3 ); // Important: use with priority 11 or later. Note:Don’t use the pre_get_posts hook for Query Loop type blocks on non-archive templates, as it will cause issues with pagination.
Note:The query_loop_block_query_vars hook is available since WP v6.1.0. Customize Query Loop type block queries on archive templates In WP v6.7+, enable Query Type “Default” for Query Loop type blocks on archive pages. In WP pre-v6.7, or for the GenerateBlocks Query Loop block or the WooCommerce Products (Beta) block, enable “Inherit query from template” on archive pages.
If you use a Query Loop type block on an archive template (in classic as well as block themes), and you have enabled the “Default” Query type (or “Inherit query from template”) setting (so it uses the native archive query), the above-mentioned query_loop_block_query_vars hook will not work or will lead to pagination issues. In this situation, you can use a pre_get_posts hook. The following example only runs on the products post-type archive.
Adapt the condition as needed: for example, for all archives, use is_archive(), and for the blog page is_home(). How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_action( 'pre_get_posts', function( $query ) { if ( is_post_type_archive('product') ) { $query->set( 'posts_per_page', 9); } }, 10); Note:On archive templates, use the pre_get_posts hook only for Query Loop type blocks that have the Query Type “Default” (or “Inherit query from template”) setting enabled.
With this setting set to “Custom” (or disabled) this hook will cause issues with pagination. In this situation, use the query_loop_block_query_vars hook instead, and make sure to tell FacetWP to ignore the native archive query. Customize Latest Posts block queries For the WordPress Latest Posts block, you can use the pre_get_posts hook, but its priority needs to be set to 11.
In this situation, you can check for the facetwp query variable as conditional, so it will only run on Latest Posts blocks that are enabled for FacetWP. Add other Conditional Tags to further restrict the hook as needed. This example only runs on a page with ID 123: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file.
Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_action( 'pre_get_posts', function( $query ) { if ( is_page(123) && $query->get('facetwp') == true ) { // Adapt is_page() conditional as needed $query->set( 'posts_per_page', 9); } }, 11); Customize GenerateBlocks Query Loop block queries For the GenerateBlocks Query Loop block, use GenerateBlocks’ generateblocks_query_loop_args hook. Add other Conditional Tags to further restrict the hook as needed.
This example only runs on a page with ID 123: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_filter( 'generateblocks_query_loop_args', function( $query_args, $attributes, $block ) { if ( is_page(123) && ( ! empty( $attributes['className'] ) && strpos( $attributes['className'], 'facetwp-template' ) !== false ) ) { // Adapt is_page() conditional as needed $query_args['posts_per_page'] = 9; } return $query_args; }, 10, 3 ); Customize Kadence Blocks Posts block queries For the Kadence Blocks Posts block, use Kadence Blocks’ kadence_blocks_posts_query_args hook.
Add other Conditional Tags to further restrict the hook as needed. This example only runs on a page with ID 123: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_filter( 'kadence_blocks_posts_query_args', function( $query_args ) { if ( is_page(123) ) { // Adapt is_page() conditional as needed $query_args['posts_per_page'] = 9; } return $query_args; }, 10 ); Customize Stackable Posts block queries For the Stackable Posts block, use Stackable’s stackable/posts/post_query hook.
Add other Conditional Tags to further restrict the hook as needed. This example only runs on a page with ID 123: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_filter( 'stackable/posts/post_query', function( $query_args ) { if ( is_page(123) ) { // Adapt is_page() conditional as needed $query_args['posts_per_page'] = 9; } return $query_args; }, 10 ); Customize Spectra Post Grid block queries For the Spectra Post Grid block, use Spectra’s uagb_post_query_args_grid hook.
Add other Conditional Tags to further restrict the hook as needed. This example only runs on a page with ID 123: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_filter( 'uagb_post_query_args_grid', function( $query_args ) { if ( is_page(123) ) { // Adapt is_page() conditional as needed $query_args['posts_per_page'] = 9; } return $query_args; }, 10 ); Note:If you customize the number of posts per page like this, and you are missing posts in the listing, make sure the block’s “Page Limit” setting is high enough to show all posts.
Customize Spectra Pro Loop Builder block queries For the Spectra Pro Loop Builder block, use the query_loop_block_query_vars hook on the block’s child Wrapper block. Add other Conditional Tags to further restrict the hook as needed. This example only runs on a page with ID 123: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file.
Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_filter( 'query_loop_block_query_vars', function( $query, $block, $page ) { if ( is_page(123) && $block->parsed_block['blockName'] === 'uagb/loop-wrapper' ) { // Adapt is_page() conditional as needed $query['posts_per_page'] = 9; } return $query; }, 10, 3 ); Customize Otter Blocks Posts block queries For the Otter Blocks Posts block, use Otter Blocks’ themeisle_gutenberg_posts_block_query hook. Add other Conditional Tags to further restrict the hook as needed.
This example only runs on a page with ID 123: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More infoadd_filter( 'themeisle_gutenberg_posts_block_query', function( $query, $attributes ) { if ( is_page(123) && $attributes['enableFacetWP'] === true ) { // Adapt is_page() conditional as needed $query['posts_per_page'] = 9; } return $query; }, 10, 2 ); Use blocks and FacetWP in WordPress .html templates With this add-on installed, it is possible to use supported blocks in WordPress .html templates, the type of template used by block themes.
For example, suppose you are using a block theme that has a search.html template for the search results page, and you want it to use a Query Loop block with a few facets above it to let the user filter the search results. The quickest way to do this is: Create a new (temporary) page. Add a Query Loop block to the page with the Block Inserter, enable FacetWP with the “Enable FacetWP” setting.
Make sure to enable the Query Type “Default” (or “Inherit query from template”) setting, because the search template is an archive, and we need the Query Loop block to use the native archive query. Enable Code Editor view in the WordPress block editor. Create a few facets. In the example below, we created a Search facet and a Pager facet. Add a Shortcode block for each facet and copy your facet shortcode(s) into them.
Switch the Block Editor to “Code Editor” view, as shown in the image on the right. Copy the whole block code from the Code editor. Open the search.html theme file and replace the part of the block code that is the content with the copied block code from your temporary page. Make sure to leave the header and footer template part intact, as well as any container or group block(s).
You can now remove the temporary page, or keep it as draft for future changes. Your search.html file will now look something like the following code, and will work with the facets: How to use custom PHP code? PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin.
More info
Recent releases
Release history
Frequently asked questions
Is Facetwp Blocks GPL licensed?
Can I use Facetwp Blocks on multiple websites?
How much does Facetwp Blocks cost on GPLCoffee?
Are updates included with Facetwp Blocks?
Is Facetwp Blocks safe to download?
Auto-updates included
Install it once, update automatically.
The GPLC Connector installs this plugin from your wp-admin and rolls out new versions to your connected sites - up to 25. Included with 12-month and Geek Lifetime plans (plus legacy 6-month).