In wordpress posts and pages there is no way to write php script in wordpress posts by default.You can only write html,css & javascript,jquery code. So there must have a way to write php code in wordpress.Yes for this problem there is plugin named “Exec-php”  By this you can be able to write php code in your wordpress posts and pages. Instructions: 1.First download…