Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $gender = get_post_meta($post->ID, "gender", true);
- $birth_year = get_post_meta($post->ID, "birth_year", true);
- $current_location = get_post_meta($post->ID, "current_location", true);
- $availability = get_post_meta($post->ID, "availability", true);
- if( $gender || $birth_year || $current_location || $availability ) : ?>
- <table border="1" id="personal">
- <caption STYLE="text-align:left"><h2>Personal Information</h2></caption>
- <tr>
- <th width="19%">Gender</th><th width="16.9%">Birth Year</th><th>Current Location</th><th>Availability</th>
- </tr>
- <tr>
- <td><?php if( $gender ): ?>
- <p><?php echo $gender; ?></p>
- <?php endif;?>
- </td>
- <td><?php if( $birth_year ): ?>
- <p><?php echo $birth_year; ?></p>
- <?php endif;?></td>
- <td><?php if( $current_location ): ?>
- <p><?php echo $current_location; ?></p>
- <?php endif;?></td>
- <td><?php if( $availability ): ?>
- <p><?php echo $availability; ?></p>
- <?php endif;?></td>
- </tr>
- </table>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement