[resolved] Shortcode attribute defaults will not override (3 posts)

  1. Rubyfire
    Posted 4 years ago #

    Ok this is what I have for the shortcode. The defaults are fine... My problem is that they do not get over ridden besides for the 'content' default... all others do not override?! Why?! Someone please help.

    [twitter username=blah] or [twitter username="blah"] still outputs the username default 'rubyfiredesigns'. How can this be?

    [code moderated - please use the pastebin for any code longer than 10 lines]

  2. Michael
    Forum Moderator
    Posted 4 years ago #

    try and remove the $atts = array(); line;

  3. Rubyfire
    Posted 4 years ago #

    Thanks... late reply... worked great... It was in a course I was utilizing. Anyhow thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic