• Resolved leem321

    (@leem321)


    Hi, so I’ve created a custom post type (our-work) and along with that a custom taxonomy (our-work-tax). Upon creating a new ‘our-work’ post I noticed that the Google Preview doesn’t show the correct permalink/url structure e.g

    site.com/my-client

    When in fact it should be something like:-

    site.com/our-work/custom-category-name/my-client

    When rendering the breadcrumbs on the ‘my-client’ template page they are in fact perfectly correct and as expected.

    Therefore is there a setting I’m missing to help display the correct permalink/url on the Google Preview window or will the links be displayed correctly in Google?

    FYI I’m also running a plugin called ‘Custom Post Type Permalinks’ and my permalinks are setup like so:-

    Custom Structure : http://site.com/%category%/%postname%/

    Permalink Settings for Custom Post Types

    our-work : http://site.com/our-work/%our-work-tax%/%postname%/
    has-archive: true / with_front: true

    Kind regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @leem321,

    Thank you for reaching out!

    We’re not familiar with the plugin you are using to customize the permalink structure. However, if the URL output and the canonical on the page are correct, we expect this to be a visual bug in our preview part. This can then be ignored.

    If you are not sure, can you share a screenshot of the metabox on a post and an URL so we can check?

    Thread Starter leem321

    (@leem321)

    Hi Jeroen, many thanks for your prompt reply.

    I’ve got together a couple of screenshots that I hope will show the ‘issue’:-

    Custom Post – Google Preview

    https://ibb.co/VtWr9gv

    Standard Post – Google Preview

    https://ibb.co/SwfxpN8

    Hopefully you can see the ‘Standard Post’ shows the url correctly in the Google Preview (including the category) where as the ‘Custom Post’ just shows the slug and none of the custom taxonomy.

    Also I don’t have an actual URL at the moment I’m afraid as I’m working locally.

    Kind regards

    Hi @leem321,

    Thanks for the screenshots.

    When you publish the post and check the Yoast output in the code, is the canonical URL correct? If so, we expect this only to be a visual bug.

    Thread Starter leem321

    (@leem321)

    Hi Jeroen, seems as though the HTML output is all good:-

    https://ibb.co/Ln9Z7Hw

    So I’ll just put this down to a visual ‘issue’.

    Kind regards

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Google Preview – Custom Post Type & Custom Taxonomy’ is closed to new replies.