0

I test on localhost

$MySITE = 'http://www.ciusan.com';

wp_editor($MySITE, 'CNB_Content', $settings = array('media_buttons' => false,) );

but on output always:

http://localhost/\"http://www.ciusan.com\"

How to become only:

http://www.ciusan.com
0

Try:

$MySITE = 'This is my site: <a href="' . esc_url('http://www.ciusan.com') . '">Ciusan</a>';

wp_editor($MySITE, 'CNB_Content', $settings = array('media_buttons' => false,) );
|improve this answer|||||
  • How about $MySITE = 'This my site: <a href="http://www.ciusan.com">Ciusan</a>'; – Dannie Herdyawan Mar 1 '15 at 2:20
  • @DannieHerdyawan updated. – Jason Murray Mar 1 '15 at 2:22
  • @DannieHerdyawan sorry, added the link now, did this work for you? – Jason Murray Mar 1 '15 at 2:41
  • sorry still same... – Dannie Herdyawan Mar 1 '15 at 2:45
  • @DannieHerdyawan just tested this on a fresh install, it's working fine for me. Perhaps you have another plugin or function that is interfering. – Jason Murray Mar 1 '15 at 3:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.