Skip to content

Instantly share code, notes, and snippets.

@alexkingorg
Created March 29, 2012 14:52
Show Gist options
  • Save alexkingorg/2238166 to your computer and use it in GitHub Desktop.
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.
<?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