Additional Feature Boxes
URL to the page in question:
-
Hi Bill,
Is there a way to have more than one row of the feature boxes on the home page? I have a topic that breaks into 15 visuals and am picturing a home page of just clickable feature boxes (with your cool hover caption).
Thanks.
Becky
Becky,
You can have more than 5 there. Here’s how you can change that:
- Go to the Appearance section in your WordPress control panel and select Edit.
- From the list of files on your right, choose page-home.php
- Find this line:
<?php $recent = new WP_Query("cat=".of_get_option('features')."&posts_per_page=5"); while($recent->have_posts()) : $recent->the_post();?>
and change the 5 there to 15.
- Scroll down just a bit and you’ll see this section:
<?php
$args = array( 'orderby' => 'menu_order', 'order' => 'asc','posts_per_page' => '5',
'tax_query' => array(
array(
'taxonomy' => 'menu_group',
'field' => 'id',
'terms' => of_get_option('featured_menu')
)
)
);
$recent = new WP_Query( $args );
while($recent->have_posts()) : $recent->the_post(); ?>
change the 5 here to 15 too.
- Save your changes.
That should do it for you. If you have any questions or trouble, let me know,
Bill
Thanks! It’s turning out just as I pictured it.
Fantastic! Enjoy your evening.
- The topic ‘Additional Feature Boxes’ is closed to new replies.