Grow your CSS skills. Land your dream job.

wordpress shortcode php help

  • # November 20, 2011 at 1:03 am

    I am having trouble finding the syntax error in this code




    function toggle_shortcode( $atts, $content = null ){
    extract( shortcode_atts(
    array(
    'title' => 'Click To Open',
    'color' => "
    ),
    $atts ) );
    return '

    '. $title .'

    ' . do_shortcode($content) . '
    ';
    }
    add_shortcode('toggle', 'toggle_shortcode');



    # November 20, 2011 at 1:06 am

    never mind. Found it

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".