Support » Plugin: Gallery Slideshow » Getting Warning: Missing argument 3 for gss_gallery_sc_filter()

Viewing 2 replies - 1 through 2 (of 2 total)
  • I am also getting “Missing argument 3 for gss_gallery_sc_filter()”. On all pages with a gallery. Using GSS or not.

    To fix this, you just need to set the third arg ($instanc) equal to ”. Like so:

    On line 72 of gallery-slideshow.php file located in the plugins root change the function to the below:

    gss_gallery_sc_filter($output = '', $atts, $instance = '')

    So the full function would look like this:

    function gss_gallery_sc_filter( $output = '', $atts, $instance = '' ) {
    	$return = $output; // fallback
    	
    	if( !empty($atts['gss']) ){
    
    		// retrieve content of your own gallery function
    		$gss_output = gallery_ss::gss_shortcode($atts);
    	
    		if( !empty( $gss_output ) ) {
    			$return = $gss_output;
    		}
    	
    	}
    
    	return $return;
    }
    • This reply was modified 7 years, 2 months ago by WP Inventory.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting Warning: Missing argument 3 for gss_gallery_sc_filter()’ is closed to new replies.