0

all

I need to write some php code in wordpress post and i found the solution on this http://www.hongkiat.com/blog/execute-php-in-wordpress-post-page-and-widget-sidebar/ using phpexec plugin.

But the old question as if i am switching between html editor to visual (wysiwyg) editor,it will change my php code also html :(

So what is solution for this, i do not want to disable my wysiwyg editor.

2 Answers 2

1

no when you switch between visual and html editor, it will not change

Sign up to request clarification or add additional context in comments.

Comments

1

you can use this plugin if you want to execute some php code in your post or page this plugin is free https://wordpress.org/plugins/php-code-for-posts/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.