{"id":26793220,"url":"https://github.com/beapi/facetwp-yearly","last_synced_at":"2025-06-16T21:38:26.073Z","repository":{"id":61702317,"uuid":"341222391","full_name":"BeAPI/facetwp-yearly","owner":"BeAPI","description":"Filter your posts by yearly archive","archived":false,"fork":false,"pushed_at":"2024-11-08T13:57:49.000Z","size":26,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-14T00:16:09.107Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BeAPI.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-02-22T14:11:40.000Z","updated_at":"2024-11-08T13:57:50.000Z","dependencies_parsed_at":"2024-11-08T14:33:45.901Z","dependency_job_id":"3ab649be-ea40-400c-81a8-4d5f4ca9a0a2","html_url":"https://github.com/BeAPI/facetwp-yearly","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/BeAPI/facetwp-yearly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Ffacetwp-yearly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Ffacetwp-yearly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Ffacetwp-yearly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Ffacetwp-yearly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BeAPI","download_url":"https://codeload.github.com/BeAPI/facetwp-yearly/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Ffacetwp-yearly/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260246213,"owners_count":22980354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-29T16:19:31.690Z","updated_at":"2025-06-16T21:38:26.055Z","avatar_url":"https://github.com/BeAPI.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FacetWP -Yearly\n\nCustom yearly source index\n\n# Requirements\n\n- Require [WordPress](https://wordpress.org/) 4.7+ / Tested up to 5.6.1\n- Require PHP 5.6\n- [FacetWP](https://facetwp.com/) 3.7.2+\n\n# Installation\n\nFirst activate FacetWP.\nThen activate FacetWP - Yearly to create your yearly facet.\n\nCreate a Facet, for example a Select Facet, and choose \"Yearly archive\" as Data source.\n\n\u003cimg width=\"700\" alt=\"image\" src=\"https://github.com/BeAPI/facetwp-yearly/assets/7976501/77717727-29a0-4b5d-b357-7659ddd1ba45\"\u003e\n\n# Tips\n\nBy default, years are sorted by chronological order. If you want to reverse this order, you can use this snippet : \n```\nadd_filter( 'facetwp_facet_orderby', 'sort_yearly_desc', 10, 2 );\n\nfunction sort_yearly_desc( $orderby, $facet ) {\n\tif ( 'YOUR_FACET_NAME' === $facet['name'] ) {\n\t\t$orderby = 'f.facet_display_value DESC';\n\t}\n\treturn $orderby;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeapi%2Ffacetwp-yearly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeapi%2Ffacetwp-yearly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeapi%2Ffacetwp-yearly/lists"}