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

35 lines
873 B
PHP
Raw Normal View History

<?php
/*
Template Name: Front
*/
get_header(); ?>
2022-04-11 03:31:19 +02:00
<?php get_template_part( 'template-parts/home', 'announcement-main' ); ?>
2021-04-29 11:47:25 +02:00
<article>
<main>
2022-04-11 03:31:19 +02:00
<?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' ) );
?>
2021-04-29 11:47:25 +02:00
</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
2022-04-24 23:11:44 +02:00
get_template_part( 'template-parts/section', 'categoryposts', array('category_name' => 'featured-artworks', 'post_per_page' => '3' ) );
?>
</main>
</article>
<?php get_template_part( 'template-parts/home', 'announcement-bottom' ); ?>
<?php get_footer();