• Resolved cnk001

    (@cnk001)


    Hello,

    I’m using Protocol-Relative to URL Format (like //example.com/sample-post/). This is problematic when creating a site map.

    I noticed that the sitemap contains only the featured image, what should I do to include other photos?

    • This topic was modified 6 years, 12 months ago by cnk001.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    I’m not sure what you mean about only including featured images. Can you provide exact URLs, screenshots, etc?

    Thread Starter cnk001

    (@cnk001)

    I fixed error with Protocol-Relative.

    I edited /wp-content/plugins/all-in-one-seo-pack/modules/aioseop_sitemap.php and add preg_replace in three places:

     					$images['image:image'] = array(
    						'image:loc' => preg_replace('|//|', 'https://', $image),
    					);
    					$images[] = array(
    						'image:loc' => preg_replace('|//|', 'https://', $this->clean_url( $attributes[0] )),
    					);
    					$images[] = array(
    						'image:loc' => preg_replace('|//|', 'https://', $this->clean_url( $image )),
    					);
    Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    Your sitemap is a blank page. I would recommend not changing anything.
    If there’s a bug, we’d love to fix it.

    Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    We’ve confirmed there’s a bug, and I’ve opened a Github issue here you’re welcome to participate in https://github.com/semperfiwebdesign/all-in-one-seo-pack/issues/1390

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with Protocol-Relative URL Format’ is closed to new replies.