arc-hive-wordpress-theme/page-templates/front.php

35 lines
871 B
PHP

<?php
/*
Template Name: Front
*/
get_header(); ?>
<?php get_template_part( 'template-parts/home', 'announcement-main' ); ?>
<article>
<main>
<?php
//https://developer.wordpress.org/reference/functions/get_template_part/#comment-4130
get_template_part( 'template-parts/section', 'categoryposts', array('category_name' => 'news', 'post_per_page' => '3' ) );
?>
</main>
</article>
<?php get_template_part( 'template-parts/home', 'announcement-middle' ); ?>
<article>
<main>
<?php
//https://developer.wordpress.org/reference/functions/get_template_part/#comment-4130
get_template_part( 'template-parts/section', 'categoryposts', array('category_name' => 'featured-artworks', 'post_per_page' => '6' ) );
?>
</main>
</article>
<?php get_template_part( 'template-parts/home', 'announcement-last' ); ?>
<?php get_footer();