{"id":15485935,"url":"https://github.com/turtlepod/fx-primary-term","last_synced_at":"2026-01-29T04:49:16.156Z","repository":{"id":148965780,"uuid":"117066865","full_name":"turtlepod/fx-primary-term","owner":"turtlepod","description":"Set primary term for a taxonomy in a post.","archived":false,"fork":false,"pushed_at":"2018-01-18T01:53:40.000Z","size":24,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-29T15:12:00.166Z","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/turtlepod.png","metadata":{"files":{"readme":"readme.txt","changelog":null,"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}},"created_at":"2018-01-11T07:40:09.000Z","updated_at":"2018-01-11T07:41:22.000Z","dependencies_parsed_at":"2024-07-10T09:22:02.271Z","dependency_job_id":null,"html_url":"https://github.com/turtlepod/fx-primary-term","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"a5909e8be89add241d8282c78c9324ab9f177d31"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/turtlepod/fx-primary-term","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtlepod%2Ffx-primary-term","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtlepod%2Ffx-primary-term/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtlepod%2Ffx-primary-term/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtlepod%2Ffx-primary-term/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turtlepod","download_url":"https://codeload.github.com/turtlepod/fx-primary-term/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtlepod%2Ffx-primary-term/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28862798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"online","status_checked_at":"2026-01-29T02:00:06.714Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-02T06:04:58.153Z","updated_at":"2026-01-29T04:49:16.142Z","avatar_url":"https://github.com/turtlepod.png","language":"PHP","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=TT23LVNKA3AU2"],"categories":[],"sub_categories":[],"readme":"=== f(x) Primary Term ===\nContributors: turtlepod\nDonate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=TT23LVNKA3AU2\nTags: Category,Primary Term,Term\nRequires at least: 4.9\nRequires PHP: 5.3\nTested up to: 4.9\nStable tag: 1.0.2\nLicense: GPLv2 or later\nLicense URI: http://www.gnu.org/licenses/gpl-2.0.html\n\nSimple plugin to enable primary term. As default only supports Post Category.\n\n== Description ==\n\nSimple plugin to enable primary term. As default only supports Post Category.\n\nDeveloper can easily extend the plugin to support custom post types and custom taxonomy.\n\nThis plugin currently only supports hierarchical taxonomy.\n\nThis plugin is very similar with Yoast SEO plugin \"Primary Term\" functionality. You do not need this plugin if you already have Yoast SEO active.\n\n\n== Installation ==\n\n1. Navigate to \"Plugins \u003e Add New\" Page from your Admin.\n2. To install directly from WordPress.org repository, search the plugin name in the search box and click \"Install Now\" button to install the plugin.\n3. To install from plugin .zip file, click \"Upload Plugin\" button in \"Plugins \u003e Add New\" Screen. Browse the plugin .zip file, and click \"Install Now\" button.\n4. Activate the plugin.\n\n== Frequently Asked Questions ==\n\n= How to get primary term? =\n\nYou can use `fx_primary_term_get_primary_term()` function. Here's an example usage.\n\n```\n$primary_category_id = fx_primary_term_get_primary_term( 'category', get_the_ID() );\nif ( $primary_category_id ) {\n\t// Do something.\n}\n```\n\n= How to add support to custom post type/taxonomy  =\n\nHere's and example function for adding support for \"genre\" taxonomy in \"book\" cpt:\n\n```\nadd_filter( 'fx_primary_term_taxonomies', function( $tax ) {\n\t$tax['book'] = array( 'genre' );\n\treturn $tax;\n} );\n```\n\n== Screenshots ==\n\n1. No screenshots.\n\n== Changelog ==\n\n= 1.0.2 - 18 Jan 2018 =\n* Most Used Tabs Support.\n\n= 1.0.1 - 15 Jan 2018 =\n* Bug Fix: Now works with new post screen.\n* Minor improvements.\n* Deprecate \u0026 Change fx_primary_get_term_meta_key() to fx_primary_term_get_post_meta_key().\n* Deprecate \"fx_primary_term_meta_key\" filter, now use \"fx_primary_term_post_meta_key\". No fallback.\n\n= 1.0.0 - 12 Jan 2018 =\n* Initial release.\n\n== Upgrade Notice ==\n\n= 1.0.0 =\ninitial relase.\n\n== Other Notes ==\n\nNotes for developer:\n\n= Github =\n\nDevelopment of this plugin is hosted at [GitHub](https://github.com/turtlepod/fx-primary-term). Pull request and bug reports are welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturtlepod%2Ffx-primary-term","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturtlepod%2Ffx-primary-term","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturtlepod%2Ffx-primary-term/lists"}