WordPress.org

Ready to get started?Download WordPress

Forums

AnythingSlider for WordPress
Attributes of shortCode (1 post)

  1. Stefan
    Member
    Posted 1 year ago #

    Thanks for this really nice wrapper around the anything-slider.

    Besides having all those warning because of accessing variables that are not set, I've found an issue while trying the shortcode with "startPanel".
    "startPanel" is obviously supported as in
    [anything_slides cat="testcat" startPanel="4"]

    But as noted here: http://codex.wordpress.org/Shortcode_API (Important tip...)
    The $attr values are always lower-case. So all the nice attributes: startPanel, changeBy, ... which are tested in the code could not be used.
    e.g. instead of:

    // Navigation Settings
     $startPanel = ( isset( $attr['startPanel'] ) ) ? $attr['startPanel'] : ( ( $options['startPanel'] ) ? $options['startPanel'] : '1');

    it shoudl read:

    // Navigation Settings
     $startPanel = ( isset( $attr['startpanel'] ) ) ? $attr['startpanel'] : ( ( $options['startPanel'] ) ? $options['startPanel'] : '1');

    Thanks again for providing this plugin
    Stefan

    http://wordpress.org/extend/plugins/anythingslider-for-wordpress/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic