custom posts permalinks url rewriting

The reason adding second permalinks like that makes the first type inaccessible is because WordPress is interpretting both list-firemen-games and list-mario as list-firemen-games post types. To WordPress, the regular expression that is registered looks exactly the same (both look something like ([^/]+)\.php/?), so when it pulls that regular expression, it’s going to match that pattern … Read more

Change url of page according to my requirements in wordpress

Are both ?page_id=5 and About.php same page? If yes: First go to Settings > Permalinks > Permalink Settings and change the Common settings to anything other than the default. Once configure use this plugin: http://wordpress.org/extend/plugins/php-to-pages/ or any other that’s similar. Make sure the Page slug is edited according to your liking. You can edit the … Read more

Permalink structure and dedicated comment pages

You can change the permalink setting to /p%post_id%, but this will also set the front property of the WP_Rewrite object to /p, so some URLs will also get this in front (/pauthor for example). You can counter this by changing the $wp_rewrite->front property again: add_action( ‘permalink_structure_changed’, ‘wpse5595_rewrite_front_reset’ ); add_action( ‘init’, ‘wpse5595_rewrite_front_reset’ ); function wpse5595_rewrite_front_reset() { … Read more