Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hello,

    you can hotfix the file wp-content/plugins/www-xml-sitemap-generator-org/code/renderers/xmlRenderer.php line 94 – function renderImages just add isset condition

    View post on imgur.com

    private function renderImages($images)
    		{
    			if (isset($images)) {
    			
    				foreach( $images as $image ) 
    				{
    					echo '<image:image>'  ;
    					echo '<image:loc>'  . $image->location . '</image:loc>';
    					if (!empty($image->caption)) {echo '<image:caption>' . $image->caption . '</image:caption>';}
    					if (!empty($image->title)) {  echo '<image:title>' . $image->title . '</image:title>';}
    					echo "</image:image>\n" ;	
    				}
    
    			}
    		}
Viewing 1 replies (of 1 total)