Advertisement
Guest User

Untitled

a guest
Nov 25th, 2011
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.29 KB | None | 0 0
  1. <?php
  2.     if ( has_post_format( 'aside' )) {
  3.         echo the_content();
  4.     }
  5.     elseif ( has_post_format( 'chat' )) {
  6.         echo '<h3>';
  7.         echo the_title();
  8.         echo '</h3>';
  9.         echo the_content();
  10.     }
  11.     elseif ( has_post_format( 'gallery' )) {
  12.         echo '<h3>';
  13.         echo the_title();
  14.         echo '</h3>';
  15.         echo the_content();
  16.     }
  17.     elseif ( has_post_format( 'image' )) {
  18.         echo '<h3>';
  19.         echo the_title();
  20.         echo '</h3>';
  21.         echo the_post_thumbnail('medium');
  22.         echo the_content();
  23.     }
  24.     elseif ( has_post_format( 'link' )) {
  25.         echo '<h3>';
  26.         echo the_title();
  27.         echo '</h3>';
  28.         echo the_content();
  29.     }
  30.     elseif ( has_post_format( 'quote' )) {
  31.         echo the_content();
  32.     }
  33.     elseif ( has_post_format( 'status' )) {
  34.         echo the_content();
  35.     }
  36.     elseif ( has_post_format( 'video' )) {
  37.         echo '<h3>';
  38.         echo the_title();
  39.         echo '</h3>';
  40.         echo the_content();
  41.     }
  42.     elseif ( has_post_format( 'audio' )) {
  43.         echo '<h3>';
  44.         echo the_title();
  45.         echo '</h3>';
  46.         echo the_content();
  47.     }
  48.     else {
  49.         echo '<h3>';
  50.         echo the_title();
  51.         echo '</h3>';
  52.         echo the_content();
  53.     }
  54. ?>
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement