Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
a minor thing really ... when there are special characters within parameters passed to a shortcode they aren't interpreted - but displayed as an error - a ? in a diamond. Is there a way round this?

My shortcode is:
Code: Select all
$FUNCS->register_shortcode( 'tooltipB', 'tooltipB_handler' );

   function tooltipB_handler( $params, $content=null ){
      global $FUNCS;

      extract( $FUNCS->get_named_vars(array(
         'trigger' => '',
         'popup' => ''     
      ), $params) );

      return '<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="'.$popup.'">'.$trigger.'</button>';
   } 
Can you please post the exact parameters used?
Thanks
Wysiwyg:
Code: Select all
[tooltipB 'Egon Schiele' 'An Austrian painter and a protégé of Gustav Klimt']

Source:
Code: Select all
[tooltipB &#39;Egon Schiele&#39; &#39;An Austrian painter and a prot&eacute;g&eacute; of Gustav Klimt&#39;]

Output:
tooltip.gif
tooltip.gif (4.67 KiB) Viewed 2800 times


I tried using the hex value for &eacute; via the Source view in the wysiwyg and got the same result.
3 posts Page 1 of 1