{"id":22059162,"url":"https://github.com/93digital/terra","last_synced_at":"2026-05-05T14:32:00.050Z","repository":{"id":56938726,"uuid":"390736040","full_name":"93digital/terra","owner":"93digital","description":"A dynamic filtering and pagination framework for WordPress archive pages.","archived":false,"fork":false,"pushed_at":"2022-06-14T15:16:55.000Z","size":517,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-11T20:02:06.157Z","etag":null,"topics":["javascript","php","wordpress"],"latest_commit_sha":null,"homepage":"https://93digital.co.uk/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/93digital.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-29T13:38:46.000Z","updated_at":"2022-01-21T11:28:29.000Z","dependencies_parsed_at":"2022-08-21T06:50:29.254Z","dependency_job_id":null,"html_url":"https://github.com/93digital/terra","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/93digital/terra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/93digital%2Fterra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/93digital%2Fterra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/93digital%2Fterra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/93digital%2Fterra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/93digital","download_url":"https://codeload.github.com/93digital/terra/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/93digital%2Fterra/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32653494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["javascript","php","wordpress"],"created_at":"2024-11-30T17:27:22.037Z","updated_at":"2026-05-05T14:32:00.030Z","avatar_url":"https://github.com/93digital.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terra\n\n***v1.0.1***\n\nTerra is a rewrite of the 93digital [Lama](https://93digital.gitlab.io/lama/) utility class. The class implements _dynamic filtering_ functionality in WordPress and allows users to quickly filter index/archive pages for custom post types using taxonomies and other custom filters.\n\n**NOTE**: php \u003e= 7.2 is required, earlier versions are not supported.\n\n## Installation\n\n### Composer\n\nFrom your theme root, run the following command in your terminal to install Terra with [Composer](https://getcomposer.org/)\n\n```bash\n$ composer require 93devs/terra:dev-master\n```\n\nThen, in your `functions.php` add the following:\n\n```php\n$GLOBALS['terra'] = new \\Nine3\\Terra();\n```\n\nIf you have used Lama for the project you're working on you will need to remove it and any initialisations for it, namely `\\Nine3\\Lama::init();` as the two tools cannot work side by side.\n\n### Luna\n\nCurrent Luna theme has Terra instantiated by default so you don't need to do anything. If you need to add Terra hooks, the place to do that is: `/inc/hooks/class-luna-terra-hooks.php`\n\nIf you're using an older version of Luna which doesn't have Terra baked in you will need to create a new class file in `/inc`, (this is where you will also add any Terra actions or filters) eg:\n\n```php\nclass Luna_Terra {\n\tpublic function __construct() {\n\t\t$GLOBALS['terra'] = new \\Nine3\\Terra();\n\t}\n}\n```\n\nThen just instantiate the class in `/inc/class-luna.php` like so: `$this-\u003eterra = new Luna_Terra();`\n\n## Development\n\n[npm](https://www.npmjs.com/) is needed to compile the JS file.\n\n```bash\nnpm install\n```\n\n### Build the JS\n\n```bash\nnpm run build\n```\n\n## Debug\n\nWhen [debugging is enabled](https://codex.wordpress.org/Debugging_in_WordPress) in WordPress Terra automatically outputs in the `debug.log` file, the following information:\n\n- the [\\$args](docs/HOOKS-FILTERS.md#5) array parameters passed to the WP_Query (when performing the ajax request)\n- the [template](docs/USAGE.md#3) that is trying to load for each element found\n\nAlternatively it's possible to set the constant `TERRA_DEBUG` to `true` to output that information inside the `wp-content/terra.log` file, add the following line to your starter theme/plugin:\n\n```php\ndefine( 'TERRA_DEBUG', true );\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F93digital%2Fterra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F93digital%2Fterra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F93digital%2Fterra/lists"}