Changing domain

You need to change your url for two places one is for “WordPress address (URL)” and for “Site address (URL)” As you are unable to login to admin panel there is one option you can change it by modifying your database table in phpmyadmin. You might also need to udate Upload URL as well. Easiest … Read more

Snippet for own (gr)avatars

This is essentially how gravatar service works. Your code has no knowledge if particular email has gravatar associated with it. The only way would be to query gravatar API and store if there is gravatar available (and re-query for updates) for each email and resulting functionality will quickly snowball past just having that redirect there. … Read more

How to make wordpress folder (/wordpress) redirect to /?

Wait, scratch my comment above. :/ Go to Admin -> Settings -> General Ensure WordPress URL remains the same (e.g. example.com/wordpress) Change Site URL to remove the subdirectory (e.g. example.com) For good measure, go to Admin -> Settings -> Permalinks to flush your rewrite rules That should be all you need.

Blog index not going to wordpress folder

You should put the WordPress files in the root of the subdomain – that is, wherever your host’s document root for blog.mysite.com is. In my case, that’s /public_html/blog; but I assume that could be different from host to host. I would recommend doing a fresh install, rather than just moving the files – unless you’re … Read more

Is it possible to incorporate username in a login redirect?

$user->data should have what you want. // snip elseif ( in_array( ‘map_user’, $user->roles ) ) return home_url( “/mapping/{$user->data->user_login}/” ); // end snip Add if (!is_wp_error($user)) wp_die(var_dump($user)); to the top of your function to see what you have to work with. Caution: This will break things. (It throws a notice as well) It is for debugging … Read more

Where’s the redirect happening? [closed]

If the page http://iridescentlearning.org/technovation/ doesn’t actually exist in that location and returns a 404, WordPress will attempt to find a matching page of the same name and redirect to that URL via the redirect_canonical() function. Look at that function in source starting with the line is_404. You can see the same thing happening by using … Read more

How can I replace my primary url globally with a parked one?

You should change all occurences of this url in database. To do it you can: Export database to SQL Use some text editor to find&replace all occurences of http://ex-ample.com to http://example.com Import this new database to server. The other option is to use http://wordpress.org/plugins/search-and-replace/ and replace all http://ex-ample.com occurences. This article should be helpfull too: … Read more