WordPress.org

Support

Support » How-To and Troubleshooting » Different permalink structure for custom post type?

Different permalink structure for custom post type?

Viewing 1 replies (of 1 total)
  • For this you would need to change the Wordpresws rewrite rules. These are stored in an array in your database and can be viewed by adding the following line to the top of your index.php file –

    <?php echo '<pre>'.$wp_rewrite.'</pre>'; ?>

    However, any changes to this would be overwritten everytime you resave your permalink structure (unless you use some kind of filter in your functions.php file, but not sure if one exists). Other than that, you would be looking at adding some code to the .htaccess file (but even that is over-written on a permalink save I think).

Viewing 1 replies (of 1 total)
  • The topic ‘Different permalink structure for custom post type?’ is closed to new replies.