Wordpress Custom Post Type : POST ID in post url


/ Published in: PHP
Save to your folder(s)

so you want to have your url structure like :
yourdomain.com/post-type/286

add the following snippet to your functions.php and change the post-type names where appropriate

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.