WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] removing post type from permalink for custom post type (3 posts)

  1. Jatinder Pal Singh
    Member
    Posted 1 year ago #

    I have created wordpress website on localhost and created custom post type "profile" and I have set permalinks to /%postname%/.
    In this case, following URL is building:
    http://localhost/wordpress/profile/jps
    here http://localhost/wordpress is the root for wordpress site.
    I want this URL to display as:
    http://localhost/wordpress/jps

    I want to remove custom post type from wordpress permalink. Is it possible?

  2. David Gard
    Member
    Posted 1 year ago #

    You'd need to look in to Custom Rewrite Rules - here is a link to a decent tutorial.

    http://www.prodeveloper.org/create-your-own-rewrite-rules-in-wordpress.html

  3. Jatinder Pal Singh
    Member
    Posted 1 year ago #

    Thanks. It helped.

Topic Closed

This topic has been closed to new replies.

About this Topic