I THINK this is where this would go, so here goes.
You have 20 levels and 760,000 GP to make the best character you can. Go.
The Defender: (still under construction)
Right now I'm trying to decide whether getting a polearm like a halberd is worth sacrificing the shield and a feat to get a greater benefit from combat expertise and bulwark of defense.
Polearm:
Pros: more attacks of opportunity, Bulwark of Defense (areas you threaten become rough terrain) out to ten feet
Cons:: no shield (-8 AC); needs a feat to use to full potential (Short Haft, from PHII, lets you use a swift action to change the area a reach weapon threatens from five feet out to ten, and vice versa.)
Sword and Board:
Pros: +8 AC, just as powerful a weapon
Cons: less reach
LG dwarf Knight 10 (From Player's Handbook II)/ Dwarven Defender 10
STR: 16 (14+2 from levels)
DEX: 16 (14 +2 wish spells)
CON: 22 (14+2 racial+2 from levels+4 wish spells)
INT: 13 (12+1 from levels)
WIS: 10
CHA: 10 (12-2 racial)
BAB=20/15/10/5
+5 keen dwarven waraxe: +29 atk, 1d10+8, 19-20/x3
HP=255
AC=52 (10 (base) +14 (+5 mithril battle plate) +8 (+5 heavy mithril shield+1 shield bonus from Knight class))+8 (bracers of armor +8 +5 (ring of protection +5) +4 (DrvnDfdr dodge bonus) +3 (Dex)), touch 22, flat-footed 52 (unless flanked by a rogue of at least four levels greater than his own)
Fort:+16
Refl:+9
Will:+14
Feats:
Dwarven armor proficiency (from Races of Stone: You gain training with all exotic dwarven armors (interlocking scale, interlocking plate, battle plate, mountain plate).
Weapon focus (dwarven waraxe): +1 to attacks with dwarven waraxe
Dodge
Combat Expertise: Additional Attacks of Opportunity
Robilar's Gambit (PHII): If you give your opponents a +4 bonus to attack and damage, you may make an attack of opportunity when they attack you.
Bonus Feats (From classes):
Knight 2: Mounted Combat
Knight 5: Endurance
Knight 10: Toughness
Class abilities:
KNIGHT:
Armor/weapon proficiency: proficient with all simple and martial weapons, all armor, and all shields (except tower shields)
Knights challenge 5/day
----You can compel an enemy to fight with you above all others. Usable each day 1/2 class level + CHA modifier. This can be used even if you do not share a common language.
----As a swift action, you can issue a challenge against a single opponent. The opponent must have an intelligence of 5 or more, have a language, and have a CR greater or equal than your character level minus 2. If the creature does not meet these prerequisites, a use of this ability is used up without effect. If it does, you gain a +2 morale bonus on will saves, attack rolls, and damage rolls against the target of this ability. If your chosen foe reduces you to 0 or less HP, you lose two uses of your knight's challenge ability for the day because of the blow to your ego and confidence from this defeat. This effect lasts for a number of rounds equal to 5+your charisma modifier. If yourfirst chosen foe is defeated or flees the area you can issue a new challenge to a different foe. You cannot switch foes if your original target is still active.