FacetWP
Presentation
https://facetwp.com/documentation/putting-it-all-together/
translate strings using gettext - https://gist.github.com/mgibbs189/eea3d274273e7b6aa2e0
THEME
index.php article-container add class "facetwp-template" , orecho facetwp_display( 'template', 'my_template' );
single.php
a) <script> to redirect, after get_header
b) placeholder template <div style="display:none"><?php echo facetwp_display( 'template', 'placeholder' ); ?></div>
Archives
https://facetwp.com/documentation/facetwp_template_use_archive/
FACETS
(facetwp facet="my_facet")
echo facetwp_display( 'facet', 'my_facet' );
disable facet until other facet is selected - https://gist.github.com/mgibbs189/7201d43589080266a197
Only index child terms (depth = 1) - https://gist.github.com/mgibbs189/3fe16f6796da96304f0e
SORT PANEL
“Per Page” box:(facetwp per_page="true")
Selections Box:
(facetwp selections="true")
Use selections box text as the header - https://gist.github.com/mgibbs189/725ced81dbe134c322e9
Result Counts:
(facetwp counts="true")
“Sort by” box:
(facetwp sort="true")
https://facetwp.com/documentation/facetwp_sort_html/
https://facetwp.com/documentation/facetwp_sort_options/
set default sort - https://gist.github.com/mgibbs189/c7841dd4ffa131ac0025
Sort by views - https://gist.github.com/mgibbs189/50bf8df42aad5da264dc
Remove sort option - https://gist.github.com/mgibbs189/cff1f35d8cac16890c8e
Determine whether selection box is empty - https://gist.github.com/mgibbs189/0d41de9cdbf63381964c
PAGINATION
(facetwp pager="true") echo facetwp_display( 'pager' ); customizing pagination - https://facetwp.com/customizing-pagination/ modify pager - https://facetwp.com/documentation/facetwp_pager_html/ pagination scrolling - https://facetwp.com/how-to-add-pagination-scrolling/ Custom pagination (functions.php) - https://gist.github.com/mgibbs189/9732174 Load more button - https://gist.github.com/mgibbs189/745124f65eb32eec92daFacetWP adds Amazon-like filtering to any WordPress content listing. It allows users to quickly browse and drill-down through your site’s content to find exactly what they’re looking for.