Title: Getting php variable valu
Last modified: August 22, 2016

---

# Getting php variable valu

 *  [djdoc](https://wordpress.org/support/users/djdoc/)
 * (@djdoc)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/getting-php-variable-valu/)
 * Hi,
 * I’m trying to get php variable of links into my editor.
    I used in the editor
   with: “%%mylink%%”
 * and instead of the_content() i put:
 * <?php
    $mylink=’www.example.com’; str_replace( ‘%%mylink%%’,$mylink,the_content());?
   >
 * how should i do it right?
 * [https://wordpress.org/plugins/tinymce-advanced/](https://wordpress.org/plugins/tinymce-advanced/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * (@azaozz)
 * [11 years ago](https://wordpress.org/support/topic/getting-php-variable-valu/#post-5830170)
 * You’ll need to use `the_content` filter to do this right.

Viewing 1 replies (of 1 total)

The topic ‘Getting php variable valu’ is closed to new replies.

 * ![](https://ps.w.org/tinymce-advanced/assets/icon-256x256.png?rev=971511)
 * [Advanced Editor Tools](https://wordpress.org/plugins/tinymce-advanced/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tinymce-advanced/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tinymce-advanced/)
 * [Active Topics](https://wordpress.org/support/plugin/tinymce-advanced/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tinymce-advanced/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tinymce-advanced/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/getting-php-variable-valu/#post-5830170)
 * Status: not a support question