Here is a list of solutions by Sandeep B..
Two key questions answered here: CWP PHP switcher not working, or CWP PHP selector not working.