title: WordPress Image not showing up when searching the website but title and article button do
body: <p>I am trying to fix a fault in my website, when a user searches an article the title and button show but the article image does not, the image of the search result is below. The code below displays the title and the button, does anyone know how I can locate the code to get the image also?</p>
  <p>(Below is the previous code) Code 1</p>
  <pre><code>&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title_attribute(); ? 
  &gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;    
  </code></pre>
  <p><a href="https://i.stack.imgur.com/FlgGj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FlgGj.png" alt="enter image description here" /></a></p>