Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2011
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.43 KB | None | 0 0
  1. <aside>
  2.             <!-- related information about this post -->
  3.                 <!-- <?php the_meta(); ?> -->
  4.                 <?php $documents = get_post_meta($post->ID, 'Documents', false);
  5.                     if ($documents) {
  6.                         echo "<em class=\"post-meta\">Documents:</em><ul class=\"post_meta_ul\">";
  7.                         foreach ($documents as $myLink) {
  8.                             echo "<li class=\"post-meta-key\">".$myLink."</li>";
  9.                         }
  10.                         echo "</ul>";
  11.                     }
  12.                 ?>
  13.                 <?php $email = get_post_meta($post->ID, 'Email', false);
  14.                     if ($email) {
  15.                         echo "<em class=\"post-meta\">Email:</em><ul class=\"post_meta_ul\">";
  16.                         foreach ($email as $myLink) {
  17.                             echo "<li class=\"post-meta-key\">".$myLink."</li>";
  18.                         }
  19.                         echo "</ul>";
  20.                     }
  21.                 ?>
  22.                 <?php $mobile = get_post_meta($post->ID, 'Mobile', false);
  23.                     if ($mobile) {
  24.                         echo "<em class=\"post-meta\">Mobile:</em><ul class=\"post_meta_ul\">";
  25.                         foreach ($mobile as $myLink) {
  26.                             echo "<li class=\"post-meta-key\">".$myLink."</li>";
  27.                         }
  28.                         echo "</ul>";
  29.                     }
  30.                 ?>
  31.                 <?php $social = get_post_meta($post->ID, 'Social Media', false);
  32.                     if ($social) {
  33.                         echo "<em class=\"post-meta\">Social Media:</em><ul class=\"post_meta_ul\">";
  34.                         foreach ($social as $myLink) {
  35.                             echo "<li class=\"post-meta-key\">".$myLink."</li>";
  36.                         }
  37.                         echo "</ul>";
  38.                     }
  39.                 ?>
  40.             </aside>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement