In crp_shortcode() you’re calling
extract( shortcode_atts( array( 'limit' => '5', 'heading' => '1', 'cache' => '1', ), $atts ) );
which is actively ignoring and overriding the settings provided in the admin area resulting in confusing behavior. You shouldn’t be providing overrides by default – it should act the way it’s set to act in the admin unless specified otherwise.
- The topic ‘Bad default behavior in crp_shortcode()’ is closed to new replies.