Title: issue with get_permalink.
Last modified: August 18, 2016

---

# issue with get_permalink.

 *  Resolved [verymossy](https://wordpress.org/support/users/verymossy/)
 * (@verymossy)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/issue-with-get_permalink/)
 * Working on a function inside a plugin, trying to use the get_permalink without
   any luck. i can’t see why:
    `$plink = get_permalink($tpost_id);` Wouldn’t work
   but get_permalink most certainly isn’t doing it’s job, anything obvious I may
   have missed? I’ve checked that $tpost_id is fine.

Viewing 1 replies (of 1 total)

 *  [Austin Matzko](https://wordpress.org/support/users/filosofo/)
 * (@filosofo)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/issue-with-get_permalink/#post-353212)
 * Is $tpost_id a global variable? Then don’t forget to declare as such within the
   function.

Viewing 1 replies (of 1 total)

The topic ‘issue with get_permalink.’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [Austin Matzko](https://wordpress.org/support/users/filosofo/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/issue-with-get_permalink/#post-353212)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
