General WordPress Related

From iThemes Codex
Revision as of 07:25, 5 February 2011 by Sridhar (talk | contribs) (Added "Author page Not Found")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Author page Not Found

Problem: Clicking on the author name link (Ex.: in posts shows Page Not Found.


The author link is supposed to be

Add the following to your theme's functions.php, reload your site twice.

global $wpdb;
 $wpdb->query("UPDATE `{$wpdb->users}` SET `user_nicename`='leonardo-wood' WHERE `ID`='1'");

In the above replace "leonardo-wood" with your user nicename (User name in small case with hypens between spaces).

The above also assumes that ID of user in question is 1. This can be checked via phpMyAdmin in wp_users table.

After ensuring that this has been fixed, remove the above code from functions.php.