• Having some issue with Rich Snippets not showing at all on custom post types and even on posts. They are activated to show in the admin panel and set to show for posts and a custom post type. Any ideas?

    I could do this manually by grabbing the score from the meta data but I can;t even get that to work as the meta data array is always empty even though it’s finding the post.

    Just need to get one of these methods to work. I have read all the docs, watched all the videos and nothing seems to work.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Milan Petrovic

    (@gdragon)

    Rich snippets are added on single posts only (conditional is_singular) in main loop query. So, if your theme is doing something that breaks the way rich snippets detect the page they can be added to, it can end up not adding the snippet.

    Can you send me the URL’s where you have the snippet and where it is not added?

    Milan

    Thread Starter Rushster

    (@rushster)

    Sure. Here is an example…

    https://www.pcinvasion.com/gamer-reviews/battlezone-vr-review

    This is a custom post type but it’s a standard post.

    • This reply was modified 7 years, 10 months ago by Rushster.
    Plugin Author Milan Petrovic

    (@gdragon)

    It looks OK, but the snippet is missing. Most usual cause for this is that theme is doing something that messes with the WP main Loop, and my plugin can’t properly detect page type. Switch to default theme to see if the snippet is there to confirm that the problem is with the theme.

    Thread Starter Rushster

    (@rushster)

    OK, I have tested it with the twentyseventeen theme and I am still not seeing snippets.

    Ultimately, all I need to get working is the ability to pull the score out. I can add the snippet code myself but it seems that the data is not even getting through to the page even though the ratings are displaying fine on the page.

    • This reply was modified 7 years, 10 months ago by Rushster.
    Plugin Author Milan Petrovic

    (@gdragon)

    I still think that problem is caused by the query on the page, because the only automatic rule used is to check if it is main query and singular page. In any case, try to disable Rich Snippet option: Single snippet per page.

    Thread Starter Rushster

    (@rushster)

    Tried disabling : Single snippet per page and no change on either our theme or using a default. I can understand it possibly not working on a customised theme but to no work on the default is strange.

    Plugin Author Milan Petrovic

    (@gdragon)

    Are you sure you have enabled Rich Snippets for selected post types? Which snippet format you choose?

    Thread Starter Rushster

    (@rushster)

    Yep, it’s active on the post type I need and it’s set to Use Microdata.

    Plugin Author Milan Petrovic

    (@gdragon)

    I have no idea why it is not working. I can’t reproduce the problem on my websites or any of the demo websites, and I have not seen other similar bug reports. This would require detailed debugging to determine where the snippet fails to build.

    Thread Starter Rushster

    (@rushster)

    Ok fair enough, Thanks for trying. I’ll hunt down an alternative.

    Plugin Author Milan Petrovic

    (@gdragon)

    I plan to introduce some changes into Rich Snippets for 2.3 version for more flexibility, for now I am not sure what is going on in your case.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Rich Snippets not showing on custom post type’ is closed to new replies.