-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfront-page.php
52 lines (48 loc) · 1.37 KB
/
front-page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* The template for displaying the home page.
*
* @package Dsignfly
*/
get_header();
$args = array(
'post_type' => 'portfolio',
'posts_per_page' => 6,
);
$the_query = new WP_Query( $args );
?>
<div class="main-content">
<div class="slider">
<div class="slider-text"><p>Gearing up the ideas</p></div>
<div class="slider-arrow1">
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/images/arrow-right.png" alt="arrow">
</div>
<div class="slider-arrow2">
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/images/arrow-left.png" alt="arrow">
</div>
<div class="slider-text2">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium eaque et iusto natus nostrum omnis quia quo.</div>
</div>
<?php get_template_part( 'template-parts/features' ); ?>
<main id="primary" class="portfolio-main">
<div class="page-title">
<h1>DESIGN IS THE SOUL</h1>
<div class="portfolio-filter">
<span><a href="/portfolio">View All</a></span>
</div>
</div>
<hr>
<div class="portfolio-content">
<?php
if ( $the_query->have_posts() ) :
while ( $the_query->have_posts() ) :
$the_query->the_post();
get_template_part( 'template-parts/portfolio', 'card' );
endwhile;
endif;
?>
</div>
</main><!-- #main -->
</div>
<?php
wp_reset_postdata();
get_footer();