Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support Steve M

    (@wpsmort)

    Hi Toby,

    This is happening because WordPress thinks that the URL for that page is https://www.naturalpetshop.nl/shop/healthy-dog/healthy-dog-regular/. You can see this throughout the page where WordPress is generating URLs such as the canonical URL and the feed URL. This is likely caused by something in the code for that page overwriting the main WordPress loop. This could be in the theme or in a plugin. Whatever is doing this is affecting WordPress which is therefore affecting All in One SEO Pack.

    I’d recommend you start by disabling all plugins and see if the URLs get written by WordPress correctly. If that doesn’t work then you’ll need to go through the code in your theme.

    Thread Starter tobyhage

    (@tobyhage)

    Hello,

    Thank you for your quick reply.
    I have disabled all plugins, this makes no difference.
    I have switched also to other themes, also no difference.
    I have disabled the all in one plugin and installed WordPress SEO from Yoast and now the canonical and the og_url are ok on the homepage.

    So i think there is a problem in the All in one seo plugin.

    Plugin Support Steve M

    (@wpsmort)

    Hi Toby,

    The problem is definitely not All in One SEO Pack as far as I can see. I can say this because when I look at the source code for the homepage I see a canonical URL which is being generated by WordPress on line 73 –

    <link rel=’canonical’ href=’https://www.naturalpetshop.nl/shop/healthy-dog/healthy-dog-regular/’&gt;

    This is the canonical URL that All in One SEO Pack uses, it’s generated by WordPress and used by us. That canonical URL is wrong which means that anything that uses that canonical URL is going to be wrong.

    Plugin Support Steve M

    (@wpsmort)

    If you can send me your WordPress login we can take a look and see if we can find the cause for you. Use the contact form here – https://semperplugins.com/contact/

    Thread Starter tobyhage

    (@tobyhage)

    Thank you for your help. I have send you the details.

    Plugin Support Steve M

    (@wpsmort)

    Hi Toby,

    Our Lead Developer checked this and found that there was a change made in the latest version of WooCommerce that is causing this. We’ll need to add some code to our plugin to make it compatible with the change that WooCommerce made.

    We’ve fixed the problem on your site and we’ll release an update to our plugin with the new code. Let me know if you need the code added to any other sites and we can provide it to you.

    Thread Starter tobyhage

    (@tobyhage)

    Thank you for the quick fix!

    Is it possible that you explain me which code to change or do you want access to my site? I prefer the first one.

    Hi Toby,

    Here’s the workaround for this – under All in One SEO – General Settings, check the “Enable Custom Canonical URLs” option and click Update Options. Then edit your static front page, and in the All in One SEO Pack metabox, enter the correct URL under “Custom Canonical URL”, and click Update.

    Thread Starter tobyhage

    (@tobyhage)

    Thank you, now i only have to find out why the canonical tag is added twice, but this is another problem.

    Hi Toby,

    The update is now live and ready for you to test; let me know if it fixes your issue!

    Thread Starter tobyhage

    (@tobyhage)

    Hi Peter,

    Thanks for the update.

    Only there is problem, the meta-tag <meta property=”og:url” content=”https://www.naturalpetshop.nl/&#8221; /> is now missing completly.

    I have Woocommerce version 2.3.7

    See https://www.naturalpetshop.nl to see this problem.

    Hi Toby,

    I don’t see All in One SEO Pack enabled there at all; make sure it’s enabled for the Products custom post type and on that page.

    Thread Starter tobyhage

    (@tobyhage)

    Peter,

    Yes problem solved!
    Thank you.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘value of og:url on homepage refers to first product instead of homepage’ is closed to new replies.