4 category in home


Author Message
Roberta

Posted: 3/3/2016
Quote message 

hello, I apologize for my Italian.
I want to create a home page divided into 4 columns. In each column I want visualizzaren the last 5post that category. Can someone help me?

if you can help this is the file code of home.php...
thanks

<?php get_header(); ?>
<?php get_sidebar('top'); ?>
<?php
if (have_posts()) {
/* Display navigation to next/previous pages when applicable */
if (theme_get_option('theme_' . (theme_is_home() ? 'home_' : '') . 'top_posts_navigation')) {
theme_page_navigation();
}
?>
<div class="mudu-content-layout post-layout-item-0">
<div class="mudu-content-layout-row">
<div class="mudu-layout-cell post-layout-item-1" style="width: 25%" >
<?php theme_get_next_post(); ?>
</div><div class="mudu-layout-cell post-layout-item-2" style="width: 25%" >
<?php theme_get_next_post(); ?>
</div><div class="mudu-layout-cell post-layout-item-3" style="width: 25%" >
<?php theme_get_next_post(); ?>
</div><div class="mudu-layout-cell post-layout-item-4" style="width: 25%" >
<?php theme_get_next_post(); ?>
</div>
</div>
</div>

<?php
/* Display navigation to next/previous pages when applicable */
if (theme_get_option('theme_bottom_posts_navigation')) {
theme_page_navigation();
}
} else {
theme_404_content();
}
?>
<?php get_sidebar('bottom'); ?>
<?php get_footer(); ?>