{"id":19389081,"url":"https://github.com/interconnectit/wp-permastructure","last_synced_at":"2025-04-23T23:31:58.040Z","repository":{"id":4150281,"uuid":"5264302","full_name":"interconnectit/wp-permastructure","owner":"interconnectit","description":"Adds the ability to configure permalinks for custom post types using rewrite tags like %post_id% and %author%.","archived":false,"fork":false,"pushed_at":"2024-02-08T13:21:29.000Z","size":84,"stargazers_count":54,"open_issues_count":8,"forks_count":14,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-02T22:33:06.249Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/interconnectit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-01T20:23:15.000Z","updated_at":"2024-05-24T00:07:59.000Z","dependencies_parsed_at":"2022-08-29T14:52:11.122Z","dependency_job_id":null,"html_url":"https://github.com/interconnectit/wp-permastructure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interconnectit%2Fwp-permastructure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interconnectit%2Fwp-permastructure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interconnectit%2Fwp-permastructure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interconnectit%2Fwp-permastructure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interconnectit","download_url":"https://codeload.github.com/interconnectit/wp-permastructure/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250532190,"owners_count":21446134,"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":"2024-11-10T10:15:17.605Z","updated_at":"2025-04-23T23:31:57.739Z","avatar_url":"https://github.com/interconnectit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Custom Post Type Permalinks\r\n===========================\r\n\r\nAdds the ability to configure permalinks for custom post types using rewrite\r\ntags like %post_id% and %author%.\r\n\r\n## Usage:\r\n\r\nWhen registering a post type you can add a value to the rewrite property with \r\nthe key 'permastruct' to define your default permalink structure.\r\n\r\neg:\r\n\r\n```php\r\n\u003c?php\r\n\r\nregister_post_type( 'my_type', array(\r\n\t...\r\n\t'rewrite' =\u003e array( 'permastruct' =\u003e '/%custom_taxonomy%/%author%/%postname%/' ),\r\n \t...\r\n) );\r\n\r\n?\u003e\r\n```\r\n\r\nAlternatively you can set the permalink structure from the permalinks settings \r\npage in admin.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterconnectit%2Fwp-permastructure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterconnectit%2Fwp-permastructure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterconnectit%2Fwp-permastructure/lists"}