V
V
Vladimir Yurchenkov2021-04-01 12:52:47
Search Engine Optimization
Vladimir Yurchenkov, 2021-04-01 12:52:47

How to replace preview in search results?

How to replace the preview in the issuance of a search result in Yandex?

606597c72e362733854020.jpeg

It turns out that yanduh takes an image from the {image} image that is used in the text, but it needs to be taken from an additional field (article preview). The question is worth it this way, because you don’t want to redo all the content.

Any ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Tutubalin, 2021-04-01
@EPIDEMIASH

<meta property="og:image" content="https://site.ru/uploads/posts/2021-04/img.jpg">

plugin https://disk.yandex.ru/d/HfavZjU2GRlKYA
There in the code find and replace
$data = explode( "~", $allcontent['poster'] ); // <-- 'image' имя доп. поля (укажите свое)

but the update will be very long

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question