Created
March 29, 2012 14:52
-
-
Save alexkingorg/2238166 to your computer and use it in GitHub Desktop.
Show full content for the first three "standard" format posts in the loop in FavePersonal.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Place this file inside your child theme as /loop/home.php | |
// Shows full content for the first three "standard" format posts in the loop | |
if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); } | |
if (CFCT_DEBUG) { cfct_banner(__FILE__); } | |
global $post; | |
if (have_posts()) { | |
$i = 0; | |
while (have_posts()) { | |
the_post(); | |
if ($i < 3 && get_post_format($post) === false) { | |
cfct_content(); | |
$i++; | |
} | |
else { | |
cfct_excerpt(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment