WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Custom Post Type Permalinks

Edit the permalink of custom post type.

Setting on Code

Example:

register_post_type( 'foo',
    array(
        "public" => true,
        'has_archive' => true,
        "rewrite" => [
            "with_front" => true
        ],
        "cptp_permalink_structure" => "%post_id%"
    )
);

Requires: 4.3 or higher
Compatible up to: 4.6.2
Last Updated: 2 months ago
Active Installs: 70,000+

Ratings

4.9 out of 5 stars

Support

0 of 7 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 0,1,0
100,1,1 100,2,2 67,3,2 100,2,2 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,2,2 100,2,2 50,2,1 0,1,0
100,1,1
100,1,1 83,6,5
50,2,1
100,1,1
100,1,1 75,4,3 0,1,0
100,1,1
100,1,1
50,2,1
33,3,1
50,2,1
0,1,0
100,1,1 100,1,1
100,2,2
100,1,1
100,1,1
0,1,0
50,2,1
100,1,1 100,2,2
50,2,1
100,1,1
100,1,1