Tag Archives: Wordpress Custom URL

Custom Pretty URL in WordPress

This tutorial will help to create a pretty customized URL for wordpress post. ‘generate_rewrite_rules’ action is used to create a new URL format and ‘WP_Rewrite’ is WordPress class for managing the rewrite rules that allow you to use Pretty Permalinks feature. Generate Pretty URL add_action(‘admin_init’, ‘flush_rewrite_rules’); add_action(‘generate_rewrite_rules’, ‘custom_pretty_url_rewrite_rules’); function custom_pretty_url_rewrite_rules( $wp_rewrite ) { $new_rules = […]