Title: need php help
Last modified: August 19, 2016

---

# need php help

 *  Resolved [chkorpsak](https://wordpress.org/support/users/chkorpsak/)
 * (@chkorpsak)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/need-php-help/)
 * The code I’m trying to edit is:
 * `echo "<img width='".$meta['sizes']['full']['width']."' height='".$meta['sizes']['
   full']['height']."' src='".wp_get_attachment_thumb_url($imgid)."' alt='Random
   image: ".$attachment->post_title."' />";`
 * It’s this part in particular that’s stumping me:
 * `src='".wp_get_attachment_thumb_url($imgid)."'`
 * I want it to output the full size photo, not the thumb nail version. And wp_get_attachment_full_url
   doesn’t work. Any ideas? Baby steps needed since I’m not expert at php

Viewing 1 replies (of 1 total)

 *  Thread Starter [chkorpsak](https://wordpress.org/support/users/chkorpsak/)
 * (@chkorpsak)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/need-php-help/#post-1837463)
 * nevermind, got it:
 * `src='".get_attachment_link($imgid, 'full')."'`

Viewing 1 replies (of 1 total)

The topic ‘need php help’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [chkorpsak](https://wordpress.org/support/users/chkorpsak/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/need-php-help/#post-1837463)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
