Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( has_post_format( 'aside' )) {
- echo the_content();
- }
- elseif ( has_post_format( 'chat' )) {
- echo '<h3>';
- echo the_title();
- echo '</h3>';
- echo the_content();
- }
- elseif ( has_post_format( 'gallery' )) {
- echo '<h3>';
- echo the_title();
- echo '</h3>';
- echo the_content();
- }
- elseif ( has_post_format( 'image' )) {
- echo '<h3>';
- echo the_title();
- echo '</h3>';
- echo the_post_thumbnail('medium');
- echo the_content();
- }
- elseif ( has_post_format( 'link' )) {
- echo '<h3>';
- echo the_title();
- echo '</h3>';
- echo the_content();
- }
- elseif ( has_post_format( 'quote' )) {
- echo the_content();
- }
- elseif ( has_post_format( 'status' )) {
- echo the_content();
- }
- elseif ( has_post_format( 'video' )) {
- echo '<h3>';
- echo the_title();
- echo '</h3>';
- echo the_content();
- }
- elseif ( has_post_format( 'audio' )) {
- echo '<h3>';
- echo the_title();
- echo '</h3>';
- echo the_content();
- }
- else {
- echo '<h3>';
- echo the_title();
- echo '</h3>';
- echo the_content();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement