-
Notifications
You must be signed in to change notification settings - Fork 0
/
front-page.php
58 lines (54 loc) · 2.08 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
53
54
55
56
57
58
<!-- This is the 'Portfolio' page (front-page.php) -->
<?php
get_header(); // get header.php file
?>
<div id="sidebar_menu"> <!-- create div for sidebar -->
<?php
get_sidebar(); // get sidebar.php
?>
</div><!-- sidebar_menu -->
<div class="main"> <!-- create div for main bulk of page -->
<h1 class="highlightColor"><?php the_field('pagetagline'); ?></h1> <!-- get title of page (portfolio) -->
<h2 ><?php echo get_post_meta($post->ID, 'PageIntro', true); ?></h2> <!-- get post meta data -->
<h3 class="highlightColor">Portfolio</h3>
<!-- Custom WP Query -->
<!-- <?php
query_posts(array( // Create a custom WP query
'category_name' => 'Portfolio', // look for posts in the category 'Portfolio'
'posts_per_page' => '-1' // display all posts (-1)
));
?>-->
<?php
if(have_posts()):
while (have_posts()):
the_post();
?>
<div class="projectPanel">
<div class="featureProject">
<div class="featureImg">
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail('thumbnail');
} else { ?>
<div class="featureImgBackup"></div>
<?php } ?>
<a href="<?php the_permalink() ?>">
<div class="mask">
<span><?php echo get_the_title(); ?></span> <!-- get title of page -->
</div>
</a>
</div>
<?php if (has_tag('Ongoing')) { ?>
<a href="<?php the_permalink() ?>"><?php echo get_the_title(); ?></a> (ongoing) <!-- get title of page -->
<?php } else { ?>
<a href="<?php the_permalink() ?>"><?php echo get_the_title(); ?></a> <!-- get title of page -->
<?php } ?>
<p class="excerpt"><?php echo(get_the_excerpt()); ?></p>
</div>
</div>
<?php
endwhile;
endif;
?>
<?php
get_footer(); // get footer.php file
?>