FacetWP Yearly WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
Filter your posts by yearly archive
★ 5stars
2.0.2latest · 5 years ago
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/beapi/facetwp-yearly/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Custom yearly source index
Requirements
Installation
First activate FacetWP. Then activate FacetWP - Yearly to create your yearly facet.
Create a Facet, for example a Select Facet, and choose "Yearly archive" as Data source.
Tips
By default, years are sorted by chronological order. If you want to reverse this order, you can use this snippet :
add_filter( 'facetwp_facet_orderby', 'sort_yearly_desc', 10, 2 );
function sort_yearly_desc( $orderby, $facet ) {
if ( 'YOUR_FACET_NAME' === $facet['name'] ) {
$orderby = 'f.facet_display_value DESC';
}
return $orderby;
}Releases
2 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.