Note that there are some explanatory texts on larger screens.

plurals
  1. POIssues using the_post_thumbnail in wordpress
    primarykey
    data
    text
    <p>I'm teaching myself Wordpress, and my current goal is to display 4 thumbnails of images posted in a particular category. </p> <p>I've already got the posts being pulled in by category, however I cannot pull ONLY the images. It's either the images and post text, or none at all.</p> <p>My code is posted here: <a href="http://pastebin.com/NZ7fyyPA" rel="nofollow">http://pastebin.com/NZ7fyyPA</a></p> <p>I've tried simply replacing </p> <p><code>&lt;?php the_content(); ?&gt;</code></p> <p>with:</p> <p><code>&lt;?php the_post_thumbnail(); ?&gt;</code></p> <p>but that didn't work at all. Nothing came back at all!</p> <p>I've even tried simply removing:</p> <p><code>&lt;?php the_content(); ?&gt;</code></p> <p>and same as above! I was thinking that because I have </p> <p><code>&lt;div class="entry-thumbnail"&gt; &lt;?php the_post_thumbnail(); ?&gt; &lt;/div&gt;</code></p> <p>That would pull the thumbnail in only, so I thought removing the content would help but nope! </p> <p>I've read through the Codex here: <a href="http://codex.wordpress.org/Function_Reference/the_post_thumbnail" rel="nofollow">http://codex.wordpress.org/Function_Reference/the_post_thumbnail</a></p> <p>and the only question I have from that, is that immediately the Codex says: </p> <p>"Use get_the_post_thumbnail($id, $size, $attr ) instead to get the featured image for any post."</p> <p>Which I don't think I'm doing, because I haven't setup anything related to a 'featured image' in my theme...or is what I'm trying to do considered using a featured image? I'm only uploading images and posting them inside of the blog posts.</p> <p>Sorry for the long write up, I'm sure it's something simple! </p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload