Features by WooThemes
Bug Report - Wrong use of shortcode_atts (2 posts)

  1. destroflyer
    Posted 2 years ago #

    Hey guys,
    it seems you've forgotten to define all available attributes in the $default array for the shortcodes (function woothemes_features_shortcode, line 141 in woothemes-features-template.php), e.g. title => ''
    This way, wordpress deletes those attributes if you call the plugin via shortcode.

    [woothemes_features title="Hello"] leads to no title.

    If you add the above line to the $defaults array, it works - So I guess, wordpress internally removes all attribues, whose keys don't appear in the default-array.

    destro :)


  2. ICEbaby86
    Posted 2 years ago #

    Thanks destroflyer,
    Also to be noted when using any of the 'before' or 'after' attributes, you must use "Text" tab in page editor (not "Visual"), when inputing '<' or '>' they are converted to "gt" and "lt" (&_ _ ;) throwing a wrench in your workaround. Hope this little tidbit will help others.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Features by WooThemes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.