Blog categories post to separate sections on front page

Discussion in 'GoldenEagle WordPress Theme' started by heartlandhosting, Feb 24, 2013.

  1. heartlandhosting

    heartlandhosting New Member

    Joined:
    Apr 5, 2012
    Messages:
    12
    Likes Received:
    1
    I want to display separate blog categories in the feature bottom section of the front page. I already have edited the code (below) to display all three columns with the blog posts. How can I edit front-page.php so that I can have a different blog category in each column?

    re: http://www.activatebuffalocounty.com

    Thank You.

    <div class="clear"></div>
    <div class="feature-bottom">

    <div class="five columns">
    <div class="feature-blog">
    <?php if (inkthemes_get_option('inkthemes_bottom_blog') != '') { ?>
    <h2><?php echo stripslashes(inkthemes_get_option('inkthemes_bottom_blog')); ?></h2>
    <?php } else { ?>
    <h2><?php _e('Our Blog','golden_eagle'); ?></h2>
    <?php } ?>
    <?php query_posts( 'posts_per_page=2' ); ?>
    <?php if (have_posts()) : while ( have_posts() ) : the_post(); ?>
    <div class="feature-blog-item">
    <div class="feature-blog-item-image">
    <a href="<?php the_permalink() ?>"><?php inkthemes_get_image(65, 60); ?> </a>
    </div>
    <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
    <?php echo inkthemes_custom_trim_excerpt(8); ?>
    </div>
    <?php endwhile; endif; ?>
    <?php wp_reset_query(); ?>
    </div>
    </div>

    <div class="five columns">
    <div class="feature-blog">
    <?php if (inkthemes_get_option('inkthemes_bottom_blog') != '') { ?>
    <h2><?php echo stripslashes(inkthemes_get_option('inkthemes_bottom_blog')); ?></h2>
    <?php } else { ?>
    <h2><?php _e('Our Blog','golden_eagle'); ?></h2>
    <?php } ?>
    <?php query_posts( 'posts_per_page=2' ); ?>
    <?php if (have_posts()) : while ( have_posts() ) : the_post(); ?>
    <div class="feature-blog-item">
    <div class="feature-blog-item-image">
    <a href="<?php the_permalink() ?>"><?php inkthemes_get_image(65, 60); ?> </a>
    </div>
    <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
    <?php echo inkthemes_custom_trim_excerpt(8); ?>
    </div>
    <?php endwhile; endif; ?>
    <?php wp_reset_query(); ?>
    </div>
    </div>

    <div class="five columns">
    <div class="feature-blog">
    <?php if (inkthemes_get_option('inkthemes_bottom_blog') != '') { ?>
    <h2><?php echo stripslashes(inkthemes_get_option('inkthemes_bottom_blog')); ?></h2>
    <?php } else { ?>
    <h2><?php _e('Our Blog','golden_eagle'); ?></h2>
    <?php } ?>
    <?php query_posts( 'posts_per_page=2' ); ?>
    <?php if (have_posts()) : while ( have_posts() ) : the_post(); ?>
    <div class="feature-blog-item">
    <div class="feature-blog-item-image">
    <a href="<?php the_permalink() ?>"><?php inkthemes_get_image(65, 60); ?> </a>
    </div>
    <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
    <?php echo inkthemes_custom_trim_excerpt(8); ?>
    </div>
    <?php endwhile; endif; ?>
    <?php wp_reset_query(); ?>
    </div>
    </div>


    </div>
    </div>
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Unfortunately there isn't a way to do that with our theme unless you custom code something up. Sorry.
    If this isn't something you're able to do then you would need to hire a developer for this.
     
  3. heartlandhosting

    heartlandhosting New Member

    Joined:
    Apr 5, 2012
    Messages:
    12
    Likes Received:
    1
    So do you have a theme that is already coded to display different categories on the page?
     
  4. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207

Share This Page