[shortcodes] problem with $atts
-
Obviously something here is not correct but I just cant see it any help appreciated.
The code is executing as it should accept that immediately after entry to ABNet_handler_blogs_newest(), inspection is showing a null terminated string for $atts. Why would the params not be passed to the handler?
[netblogsnewest count=2 total=true]
add_action("after_setup_theme", "ABNet_handler_blogs_newest", 15); add_shortcode('netblogsnewest','ABNet_handler_blogs_newest'); function ABNet_handler_blogs_newest( $atts ) { if( !is_multisite() ) return false; extract( shortcode_atts( array( 'count' => '', 'total' => '', ), $atts ) ); return ABNet_output_blogs_newest($count, $total); }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[shortcodes] problem with $atts’ is closed to new replies.