//Add shortcodes
function cart_function( $atts ){ ?>
<?php $blog_by_title = wp_get_archives('type=alpha&echo=0');
return $blog_by_title; ?>
<?php
}
add_shortcode( 'blogs_by_title', 'cart_function' );
//Enables shortcodes for widgets
if (!is_admin())
add_filter('widget_text', 'do_shortcode', 11);
?>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.