Skip to content

Gists - FacetWP

Code snippets for FacetWP

Gists

FacetWP – per_page facet customization
9 years ago
<?php

add_filter( 'facetwp_per_page_options', function( $options ) {
    return array( 5, 10, 25, 50, 100, 250 );
});

Where does code go?

PHP

PHP code usually starts with <?php  and can go into your child theme’s functions.php file.

JavaScript

If the code starts with <script>, then you can paste it into a wp_head PHP hook as shown in this example.

CSS

Add to your (child) theme’s style.css file.

© 2025 Gists - FacetWP • Built with GeneratePress