WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Rubyfire
    Member
    Posted 2 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. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

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

  3. Rubyfire
    Member
    Posted 2 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