Title: get_permalink inside editor
Last modified: August 19, 2016

---

# get_permalink inside editor

 *  [JAM3SoN](https://wordpress.org/support/users/jam3son/)
 * (@jam3son)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/get_permalink-inside-editor/)
 * Hello! I am using wordpress with qTranslate plugin in order to have site multilingual.
   Sometimes I need to create link in tinymce editor(when editing some post or page),
   but not static(with tinymce link icon) – in template if I call get_permalink(
   some_ID), url is generated with active language in mind.
 * It could work let’s say in this way. I will include in editor “[link=15]” – 15
   is ID of post/page and when printing content some template filter/helper will
   find occurences of [link=xxx] and replace them with get_permalink(xxx).
 * a) does something like this exists already in WordPress and I’m dumb not able
   to find it
    b) is there any plugin for this c) is it possible to write some custom
   helper for this?
 * If a) and b) are false, I’ll be glad to some codex link where can I find something
   about this.
 * Thank you very much in advance!

Viewing 1 replies (of 1 total)

 *  Thread Starter [JAM3SoN](https://wordpress.org/support/users/jam3son/)
 * (@jam3son)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/get_permalink-inside-editor/#post-1601991)
 * Let’s simplify it:
 * Is it possible to write in HTML editor [link=xxx] and with some template filter/
   helper turn this tag into <?php echo get_permalink(xxx); ?>. I am curious if 
   it is possible to inject some PHP into content. Thanks!

Viewing 1 replies (of 1 total)

The topic ‘get_permalink inside editor’ is closed to new replies.

## Tags

 * [editor](https://wordpress.org/support/topic-tag/editor/)
 * [languages](https://wordpress.org/support/topic-tag/languages/)
 * [tinymce](https://wordpress.org/support/topic-tag/tinymce/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [JAM3SoN](https://wordpress.org/support/users/jam3son/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/get_permalink-inside-editor/#post-1601991)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
