Skip to content

Instantly share code, notes, and snippets.

@szbl
Created July 4, 2013 02:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save szbl/5924593 to your computer and use it in GitHub Desktop.
Save szbl/5924593 to your computer and use it in GitHub Desktop.
Example view from faux MVC WordPress plugin example for CodePoet.com article.
<table class="form-table">
<tbody>
<tr>
<th>
<label for="szbl-person-email">
Email Address:
</label>
</th>
<td>
<input type="email" id="szbl-person-email" name="szbl_person_email" value="<?php
if ( $value = get_post_meta( get_the_ID(), 'szbl_person_email', true ) )
echo esc_attr( $value );
?>">
</td>
</tr>
</tbody>
</table>
<?php wp_nonce_field( 'szbl_person_meta_data', 'szbl_person_nonce' ); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment