<?php
/**
** removes genesis default pagination and adds a condition to use facetwp pager instead
** change `if ( is_home() ) {` as needed to target your facetwp filter pages
**/
remove_action( 'genesis_after_endwhile', 'genesis_posts_nav' );
add_action( 'genesis_after_endwhile', function() {
if ( is_home() ) { // conditional to identify facetwp pages is_home() identifies the blog archive
echo facetwp_display( 'pager' );
} elseif ( 'numeric' === genesis_get_option( 'posts_nav' ) ) {
genesis_numeric_posts_nav();
} else {
genesis_prev_next_posts_nav();
}
} );