• Resolved Cheryl_P

    (@cheryl_p)


    Hi,

    I really like the plugin but it’s bringing up a warning when i try to use the function in my theme:

    Warning: Missing argument 1 for Text_Slider::shortcode(), called in /plugins/text-slider/public/class-text-slider.php on line 458 and defined in /plugins/text-slider/public/class-text-slider.php on line 324

    Any ideas?

    https://wordpress.org/plugins/text-slider/

Viewing 1 replies (of 1 total)
  • kinospro

    (@kinospro)

    Here is solution:
    1. Go to base_dir/wp-content/plugins/text-slider/public/class-text-slider.php
    2. Find block

    
    // Template tag.
    function wp_text_slider() {
    	echo Text_Slider::get_instance()->shortcode();
    }

    3. Replace with

    
    // Template tag.
    function wp_text_slider() {
    	echo Text_Slider::get_instance()->shortcode('');
    }

    Done. Considering the fact this plugin didn’t update for last 2 years there will be no problems with plugin files overriding 😉

Viewing 1 replies (of 1 total)

The topic ‘WP Error on shortcode’ is closed to new replies.