Ajay Patel
Ajay Patel

Reputation: 5418

Execute php code in WordPress Post

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.

Upvotes: 0

Views: 3526

Answers (2)

tutoground
tutoground

Reputation: 96

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/

Upvotes: 1

Babanna Duggani
Babanna Duggani

Reputation: 727

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

Upvotes: 1

Related Questions