Generating a Rewrite Rule for sSecific Post-Requests from a Submitted Form?

I imagine that wouldn’t be too difficult. Assuming the number of custom ‘dynamic’ urls is known, this should do the trick: foreach ( array( ‘most-recent’,’last-week’,’category-1/most-recent’,’category-1/last-week’) as $page ) add_rewrite_rule( “$page/?$”, ‘index.php’, ‘top’ ); What this does is tells WordPress “Whenever you have a url structure that matches X, treat it as if the url were … Read more

404 Issue w/ Custom Post Type – using Meta for Permalink rewrite

Indeed, you need to add the rewrite tags. They indicate what can come in the place of your %cal_year% and similar tags: add_rewrite_tag( ‘%cal_year%’, ‘([0-9]{4})’ ); add_rewrite_tag( ‘%cal_month%’, ‘([0-9]{1,2})’ ); add_rewrite_tag( ‘%cal_day%’, ‘([0-9]{1,2})’ ); This works, but I don’t understand how: it seems to me something is missing to let WordPress know how it should … Read more

Can I change default registration link (without htaccess)?

If you want to keep this information in the $_GET, you will have to modify the form’s action parameter URL. You can do this by hooking into site_url: add_filter( ‘site_url’, ‘wpse18418_site_url’, 10, 4 ); function wpse18418_site_url( $url, $path, $scheme, $blog_id ) { if ( ‘login_post’ == $scheme ) { $url .= ‘&role=doctor’; // Or do … Read more