[wordpress] fix widget display functions and cosmetic tidy up