"; print_r($shortcode_tags); echo ""; // FEATURED BOX function asfp_featured( $atts, $content = null ) { extract(shortcode_atts(array( 'title' => '', 'title_color' => 'FFF', 'header_color' => '343f44', 'height' => 'auto', 'class' => '', ), $atts)); // check the title if ($title) {$t = '
'.$title.'
' ;}; // select the class if ($title) {$classstr = "c";} else {$classstr = "c2";}; $before = ' '; return $before.$content.$after; } add_shortcode('feature_box', 'asfp_featured'); // DISABLE AUTOFORMATING POSTS function my_formatter($content) { $new_content = ''; $pattern_full = '{(\[noformat\].*?\[/noformat\])}is'; $pattern_contents = '{\[noformat\](.*?)\[/noformat\]}is'; $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE); foreach ($pieces as $piece) { if (preg_match($pattern_contents, $piece, $matches)) { $new_content .= $matches[1]; } else { $new_content .= wptexturize(wpautop($piece)); } } return $new_content; } remove_filter('the_content', 'wpautop'); remove_filter('the_content', 'wptexturize'); add_filter('the_content', 'my_formatter'); // BASIC LIST function asfp_basic_list( $atts, $content = null ) { extract(shortcode_atts(array( 'class' => '', ), $atts)); $content = str_replace('