Contributors: Toro_Unit, inc2734 Donate link: http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV Tags: permalink,permalinks,custom post type,cms Requires at least: 4.0 Tested up to: 5.2 Requires PHP: 5.3 Stable tag: 2.0.5 License: GPLv2 or Later License URI: http://www.gnu.org/licenses/gpl-2.0.html
Easy to change Permalink of custom post type.
Edit the permalink structure of custom post type too easy.
Simple Post Type Permalinks is Simple and Smart than Custom Post Type Permalinks.
Available tags are %post_id%
, %postname%
, %year%
, %monthnum%
, %day%
, %hour%
, %minute%
, %second%
, %author%
.
Requires PHP version 5.3 or higher.
This Plugin published on GitHub.
Please Fork and Pull Request!
- Upload the entire
/simple-post-type-permalinks
directory to the/wp-content/plugins/
directory. - Activate Simple Post Type Permalinks through the 'Plugins' menu in WordPress.
Access the permalinks setting by going to Settings -> Permalinks.
Only %post_id%
and %postname%
.
Example:
register_post_type( 'foo',
array(
'public' => true,
'has_archive' => true,
'rewrite' => [
'with_front' => true
],
"sptp_permalink_structure" => 'foo/%post_id%'
)
);
- screenshot-1.png
- Tested 4.9
- Change of class structure.
- Change namespace.
- Add abstract Module class.
- Use autoloader.
- Remove constructor injection and add setter injection for modules.
- Support
%year%
,%monthnum%
,%day%
,%hour%
,%minute%
,%second%
,%author%
.
- fix pagination link.
- fix textdomain.
- Test with WooCommerce and WPML.
- Admin Bug Fix.
- Support
get_post_type_archive
.
- Admin Bug Fix.
- Coding Standard Fix.
- Drop PHP 5.2.
- First release
- Drop PHP 5.2.
First Release