Home › Forums › CSS › There has got to be an easier way › Re: There has got to be an easier way
April 29, 2011 at 4:48 am
#48960
CrownOfMars
Member
This is the best i could do:
add_shortcode('zip', 'theme_shortcode_list');
function theme_shortcode_list( $atts, $content = null ) {
extract( shortcode_atts( array(
'class' => 'zip',
), $atts ) );
return '' . $content . '';
}
It outputted this:
Breaking the Silence – Parliamentary Breakfast Resources
I just selected it with CSS using span.zip a but i’d prefer if i could get the class within the a tags.