WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] PHP – how to get the medium thumbnail url?

[Resolved] PHP – how to get the medium thumbnail url?

  • utnalove
    Participant

    @utnalove

    Hello, I am now using this:

    <meta property="og:image" content="<?php echo wp_get_attachment_thumb_url( get_post_thumbnail_id( $post->ID ) ) ?>" />

    But it gives the URL of the small thumbnail. I need to have the URL of the medium thumbnail. What is the right code?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] PHP – how to get the medium thumbnail url?’ is closed to new replies.