Shortcode problem
-
I am having some trouble getting my shortcode to pass a parameter.
In my page I put:
[rootsPersona personId=’p111′ /]
My shortcode handler code is:
function rootsPersonaHandler( $atts, $content = null ) { $rootsPersonId = $atts["personId"]; $block = "rootsPersonaHandler: $rootsPersonId"; if(isset($rootsPersonId)) { // this block never gets called } return $block; }
However, $rootsPersonId is always coming up as unset. “rootsPersonaHandler:” is all that ever gets passed.
Can anyone else see the issue? I’m stuck.
Thanks
Ed
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Shortcode problem’ is closed to new replies.