Ready to get started?Download WordPress


Rewriting Custom post type (3 posts)

  1. prempwp
    Posted 2 years ago #

    I have all my posts in this format /gallery/%postname%, where 'gallery' is my custom post type, but i want to change it to /media/gallery/%postname%, and make sure that all my current posts still get me to the same page as they did before without a Not Found error.

    I tried 'rewrite' => array("slug" => "/media/gallery"),

    but all the posts lead me to Not Found page.

    Help please :)

  2. Shaan
    Posted 2 years ago #

  3. prempwp
    Posted 2 years ago #

    well, tried reading it, but couldn't figure out. Please help.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.