I am using WordPress and I want to have some PHP commands executed on my page. After I paste my HTML with embedded PHP (in HTML tab of WordPress editor), the PHP codes are automatically converted to comments!! Below is the example:
What I enter in HTML tab:
<div class="floated"><label for="contactName"><?php _e( 'Name', 'arizona' ); ?>*:</label>
What it looks like after I go to Visual tab and then come back to HTML tab:
<div class="floated"><label for="contactName"><!--?php _e( 'Name', 'arizona' ); ?-->*:</label>
It looks like the editor just accept pure HTML code and converts the rest of unknown tags to comment! If that’s the case how can have/call a php page within my text!.
I need this as I want to have a contact form within an accordion slider!
This is not a good practice, that’s why it’s not supported within WordPress.
The following are considered good practices:
If you want a contact form consider using the Contact Form 7 Plugin.
http://wordpress.org/extend/plugins/contact-form-7/
Which will let you add a TAG that you could use in that accordion.