• 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

    (@jam3son)

    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.