{"id":19744,"date":"2012-09-03T15:00:23","date_gmt":"2012-09-03T15:00:23","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-permastructure\/"},"modified":"2023-07-26T09:18:34","modified_gmt":"2023-07-26T09:18:34","slug":"wp-permastructure","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/wp-permastructure\/","author":65781,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.4.4","stable_tag":"1.4.4","tested":"6.3.8","requires":"3.3","requires_php":"","requires_plugins":null,"header_name":"WP Permastructure","header_author":"Robert O'Rourke","header_description":"","assets_banners_color":"","last_updated":"2023-07-26 09:18:34","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/interconnectit.com\/","header_plugin_uri":"https:\/\/github.com\/interconnectit\/wp-permastructure","header_author_uri":"http:\/\/interconnectit.com","rating":4.3,"author_block_rating":0,"active_installs":400,"downloads":21196,"num_ratings":15,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"sanchothefat","date":"2012-09-03 15:01:09"},"1.1":{"tag":"1.1","author":"sanchothefat","date":"2012-10-01 08:18:28"},"1.2":{"tag":"1.2","author":"sanchothefat","date":"2012-10-19 11:27:12"},"1.3":{"tag":"1.3","author":"sanchothefat","date":"2014-10-23 12:16:40"},"1.4.2":{"tag":"1.4.2","author":"spectacula","date":"2015-11-04 17:05:57"},"1.4.3":{"tag":"1.4.3","author":"sanchothefat","date":"2022-11-25 10:31:56"},"1.4.4":{"tag":"1.4.4","author":"sanchothefat","date":"2023-07-26 09:18:34"}},"upgrade_notice":[],"ratings":{"1":"2","2":0,"3":"1","4":0,"5":"12"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.3","1.4.2","1.4.3","1.4.4"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":2943516,"resolution":"1","location":"plugin"}},"screenshots":{"1":"The extended permalink settings panel"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1487,4925,939,12054,539],"plugin_category":[59],"plugin_contributors":[80834,79639],"plugin_business_model":[],"class_list":["post-19744","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-post-types","plugin_tags-custom-taxonomies","plugin_tags-permalinks","plugin_tags-rewrite-rules","plugin_tags-urls","plugin_category-utilities-and-tools","plugin_contributors-interconnectit","plugin_contributors-sanchothefat","plugin_committers-sanchothefat","plugin_committers-spectacula"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-permastructure.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-permastructure\/trunk\/screenshot-1.jpg?rev=2943516","caption":"The extended permalink settings panel"}],"raw_content":"<!--section=description-->\n<p>In addition to controlling your custom post type permalinks this plugin adds support for using custom taxonomies in your permalink structures as well.<\/p>\n\n<p>Not only that but you can control the full permalink so the post type slug is not required at the start of the link.<\/p>\n\n<p>Multiple post types can use the same permalink structure.<\/p>\n\n<h4>Usage<\/h4>\n\n<p>There are 2 ways to use this plugin:<\/p>\n\n<p><strong>Permalink Settings<\/strong><\/p>\n\n<p>The plugin adds fields to the permalinks settings page for any public facing custom post types.<\/p>\n\n<p><strong>In Code<\/strong><\/p>\n\n<p>When registering a post type you can add a value to the rewrite property with the key 'permastruct' to define your default permalink structure.<\/p>\n\n<p>eg:<\/p>\n\n<pre><code>&lt;?php\n\nregister_post_type( 'my_type', array(\n    ...\n    'rewrite' =&gt; array(\n        'permastruct' =&gt; '\/%custom_taxonomy_name%\/%author%\/%postname%\/'\n    ),\n    ...\n) );\n\n?&gt;\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>You can install the plugin using the auto-install tool from the WordPress back-end.<\/li>\n<li>To manually install, upload the folder <code>\/wp-permastructure\/<\/code> to <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>You should now see input boxes for any custom post types you have on the permalink settings page<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>None so far.<\/p>\n\n<!--section=changelog-->\n<ul>\n<li>1.4.3: Remove <code>create_function<\/code> calls<\/li>\n<li>1.4: Handles sample filters without the need for the get post call<\/li>\n<li>1.3: Added permalink sanitisation function, current one incorrectly truncated placeholders<\/li>\n<li>1.2: Fixed attachment URL rewrites, fixed edge case where permastruct is %postname% only<\/li>\n<li>1.1: Fixed problem with WP walk_dirs and using %category% in permalink - overly greedy match<\/li>\n<li>1.0: Initial import<\/li>\n<\/ul>","raw_excerpt":"Adds the ability to configure permalinks for custom post types using rewrite tags like %post_id% and %author%.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/19744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=19744"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sanchothefat"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=19744"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=19744"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=19744"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=19744"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=19744"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=19744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}