Rewrite rule that wp-login.php?action=register is left alone

I’m assuming that you’re working with one of the latest versions, but I used the latest 1.5.1. Without knowing how your specific Facebook Connect plugin works and why it breaks here’s what I’ve come up with. Short answer // bp-members/bp-members-signup.php ~ line 611 if ( defined( ‘BP_SKIP_REGISTRATION_REDIRECT’ ) and BP_SKIP_REGISTRATION_REDIRECT ) wp_redirect( ‘/?pagename=register’ ); And … Read more

Custom taxonomy and post type rewrite rules

I hope i understand you 🙂 I think the easiet way (in my humble opion) the best way is to use taxomonies like so: function portfolio_taxomony() { register_taxonomy( ‘portfolio’, ‘post’, array( ‘hierarchical’ => true, ‘label’ => ‘Web Design’, ‘query_var’ => true, ‘rewrite’ => true ) ); } add_action( ‘init’, ‘portfolio_taxomony’, 0 ); (Web Design if … Read more

Rewrite rules for custom post type

You need to look at add_rewrite_tag() and add_rewrite_rule() Also read this and this topics. They are very close to you issue. After you setup rewrite rule don’t forget to flush rules add_action( ‘wp_loaded’,’my_flush_rules’ ); // flush_rules() if our rules are not yet included function my_flush_rules(){ $rules = get_option( ‘rewrite_rules’ ); $pattern = ‘news/([^/]+)?’; // the … Read more

How are rewrite rules applied in WordPress?

index.php acts as a router. All requests are sent through index.php which looks up the rules in the database and directs you to the correct location. This should give you an idea of how a PHP router works. The .htaccess just removes index.php from the URL. More rules can be created using the WP_Rewrite class.

How to deal with a GET variable of ‘name’?

In case it’s useful for someone else in this situation, I ended up creating a page outside WordPress which renames the ‘name’ parameter (to ‘username’) and then redirects to the page I originally wanted to hit. My code for this external page is: <?php $data = array(‘UID’ => $_GET[‘UID’], ‘username’ => $_GET[‘name’], ‘ANI’ => $_GET[‘ANI’], … Read more

change url for portfolio image

Basically, what you are looking at in the theme you mentioned is just a dummy link with # That’s why it just takes you to the start of the page. If you check the href attribute of the link for SEO Optimization it has # in the end. http://www.gallyapp.com/tf_themes/chamber_wp/?page_id=11# My suggestion is that you need … Read more

Modifying WP URL handing code?

I ended up solving this with a little bit of code (in the form of a plugin): if(isset($_GET[‘state’]) OR isset($_GET[‘city’])) { $url = explode(“https://wordpress.stackexchange.com/”, $_SERVER[‘REQUEST_URI’]); $url = end($url); $_SERVER[‘REQUEST_URI’] = “https://wordpress.stackexchange.com/” . $url; } This code in essence removes the “/arizona/” or “/arizona/phoenix/” from the REQUEST_URI global variable and replaces it with “https://wordpress.stackexchange.com/”, which then … Read more