Browsing Tag


Help with add_rewrite_rule solution

In my WordPress blog, I configured permalinks > Category base to “magazine” with links having this format: The above link opens the France Category

WordPress add_rewrite_rule for user login in URL

I’d like to be able to use a user’s login name in my URL, and then grab it for use within the page template. Like

WordPress add_rewrite_rule working on Apache, not on IIS

I am having the following rewrite rule : add_action( 'init', 'custom_rewrite_rules' ); function custom_rewrite_rules() { add_rewrite_rule('formation(/([^/]+))?(/([^/]+))?/?','index.php?pagename=formation&formation_slug=$matches[2]&formation_id=$matches[4]','top'); add_rewrite_tag('%formation_slug%','([^&]+)'); add_rewrite_tag('%formation_id%','([^&]+)'); } This works fine on my Apache

Back to Top 134727 wordpress questions, 32 Wordpress answers.
Wordpress related, All rights reserved
Powered by Creative Advertising