Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
3
Impact
~1k people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Feb
8
comment How do I get the URL of only the first picture in a Wordpress post?
Nvm! I used get_post_thumbnail_id() to use as the $attachment_id in the function. Worked great! Thanks Raphael.
Feb
8
comment How do I get the URL of only the first picture in a Wordpress post?
Thanks Raphael. But if I were to use the function within the loop, how do I make it takes only the first image in a post on a post page? Would the $attachment_id be 1 or 0?