Various bits of PHP / HTML to customize this theme. Add PHP to /custom/custom_functions.php unless otherwise noted.

HTML

PHP

  1. Add blog posts to front page. You can either add this to /custom/custom_functions.php or page_home.php (if you need to move it to a specific area on the home page). Change the number in 'posts_per_page' => '3' to change the number of posts shown.

    // Homepage Blog Posts
    add_action('genesis_loop', 'themedy_do_blog_posts');

    function themedy_do_blog_posts() {
    query_posts(array('posts_per_page' => '3', 'post_type' => 'post'));
    if ( have_posts() ) :
    $i = 1;
    echo '

    ';
    while ( have_posts() ) : the_post();
    global $post;
    echo '

    '; if (has_post_thumbnail( $post->ID )) { echo '
    '; the_post_thumbnail( 'themedy-feature-standard' ); echo '
    '; echo '
    '; } echo '

    '.get_the_title($post->ID).'

    '; the_excerpt(); if (has_post_thumbnail( $post->ID )) { echo '
    '; } echo '

    ';
    $i++;
    if ($i >= 4) { $i = 1; }
    endwhile;
    echo '

    ';
    else: endif; wp_reset_query();
    }