shortcode fails to fire
-
Driving me insane this is.
I am working in a class file structure. I set the shortcode after the class is instantiated, at the bottom of the class file:
if( ! isset($rsconf)) { global $rsconf; $rsconf = new RSConference(); add_shortcode('rsconf_schedule', array('RSConference', 'rsconf_schedule_shortcode')); }
I have a trivial shortcode handler:
public function rsconf_schedule_shortcode( $attrs ) { error_log( __CLASS__.'::'.__FUNCTION__ ); return '<h2>Here</h2>'; }
I get no errors and I see only the literal shortcode tag:
[rsconf_schedule]
This is making me mental. Anyone?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘shortcode fails to fire’ is closed to new replies.