• I have a recipe blog and nearly every google search result have a picture next to their site. How do I get this?

    • This topic was modified 4 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 7 replies - 1 through 7 (of 7 total)
  • You need to make your html code include various tags for social content. og (Open Graph) is one such schema, but there are more. Some themes have some support for this built-in directly, but any SEO plugin (there are many to choose from) will happily assist you with this.

    One more thing: You also need to tell your theme/SEO plugin which specific image to use. The normal way of doing that is to set a “Featured image” for your post/page. Exactly how you do this depends on which editor environment you’re using. (In the Classic Editor you may need to enable the corresponding meta-box by checking “Featured image” within the editor’s screen options; In the Block Editor you need to look at the “Document settings” – remember that you need to save the changes to your post/page after setting the default image.)

    If you install the Yoast SEO plugin, you can configure this.

    Thread Starter lotsofrice

    (@lotsofrice)

    Ok I have yoast installed and looking at my Google preview I can see the featured image. but when I actually go to check google and search for this page I cant see the image. I’ve waited like 2 weeks and it’s still the same.

    The preview is a helper tool for you to get your code structure right. But now you need to wait for Googlebot to come and visit your pages, and there’s not much you can do to speed that up, except making sure that your pages are in order when the bot comes to your site next time.
    But hey, there’s one thing: Now that you’ve installed Yoast, make sure that you’ve got a working sitemap for Google, and then submit a link to that sitemap, and also make sure that you’ve got a file /robots.txt that points to that sitemap.

    Thread Starter lotsofrice

    (@lotsofrice)

    Sorry for late reply.

    How do I make my robots file point to the sitemap link? I’ve been reading about all this and now I’m not sure if robots are even crawling my site. This is all that my robots file says

    User-agent: *
    Disallow: /wp-admin/
    Allow: /wp-admin/admin-ajax.php

    Is this correct?

    WordPress doesn’t have any sitemap natively. There is an ongoing project to include such a function in Core, see https://make.www.ads-software.com/core/2020/01/27/feature-plugin-xml-sitemaps/ but it may take some time before that happens.

    However, any typical SEO plugin will happily generate XML sitemaps if you ask them to do it. So: enable XML sitemap in your SEO plugin and find its URL.

    Next add a line like this into your robots.txt:
    Sitemap: https://example.com/sitemap.xml
    As you can see, this statement should include the full URL to your XML sitemap. It can be put before or after the current “User-agent” blob. The order is not important.
    (Note that the search engines prefer sitemaps in the XML format, which includes some additional meta data about the entries. If you want to show a sitemap to your visitors, then a sitemap in html format is better.)

    And the User-agent blob you showed looks ok. It just asks the crawler bots not to read pages under /wp-admin (which they hopefully wouldn’t be able to do, anyway).

    Thread Starter lotsofrice

    (@lotsofrice)

    Ok I’m still having trouble with this ??.
    This is my website https://lotsofrice.com
    I noticed my latest post https://lotsofrice.com/index.php/2020/04/28/the-recipe-of-popcorn-chicken/ finally has a picture when I search for it on Google but it’s the wrong photo! It’s not the image I featured.
    I also want my logo to appear in search results which it never does.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How do I get a picture in my Google search results?’ is closed to new replies.