kill gallery styles wordpress

add to functions.php to clear gallery styles.
add_filter('gallery_style', create_function('$a', 'return preg_replace("%(.*?)%s", "", $a);'));

// add Shortcode for post title within content
function mm_insert_title_func($atts) {
   // Insert the post title, with optional before and after strings.
   // [mm-insert-title before='

' after='

'] global $post; extract(shortcode_atts(array('before' => '', 'after' => '' ), $atts)); $output = "{$before}{$post->post_title}{$after}"; return $output; } add_shortcode('mm-insert-title', 'mm_insert_title_func');
Advertisements