$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>woocommerce offtopic - Multiple Schema.org markups on a single product page|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

woocommerce offtopic - Multiple Schema.org markups on a single product page

matteradmin9PV0评论

On a single product page I have two Product types. One has only "name" and "sku" and the other has more properties. Which will Google take into account?

On a single product page I have two Product types. One has only "name" and "sku" and the other has more properties. Which will Google take into account?

Share Improve this question edited Oct 23, 2018 at 13:08 Klevis Miho asked Oct 22, 2018 at 14:31 Klevis MihoKlevis Miho 5071 gold badge4 silver badges12 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 1

If you are interested in a way to avoid the uncertainty (as Google will most likely never document what they’ll do in such a case, and it could change anytime, or depend on additional signals etc.):

Give both Product items the same URI as ID. This conveys to consumers that both of the Product items are about the same product, not different products. Here is an example with all three syntaxes (JSON-LD, Microdata, RDFa).

(Of course, the ideal solution would be to have only one Product item in the first place, but this is often impossible or hard to implement.)

Helpful if you shared the markup.

You can always check to see what Google sees with their structured date testing tool: https://search.google/structured-data/testing-tool

Post a comment

comment list (0)

  1. No comments so far