Forums

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

  1. Rubyfire
    Member
    Posted 4 months 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. alchymyth
    The Sweeper
    Posted 4 months ago #

    try and remove the $atts = array(); line;
    http://codex.wordpress.org/Shortcode_API

  3. Rubyfire
    Member
    Posted 2 months ago #

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

Reply

You must log in to post.

About this Topic