-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-experiences.php
More file actions
57 lines (53 loc) · 2.58 KB
/
page-experiences.php
File metadata and controls
57 lines (53 loc) · 2.58 KB
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
<?php
get_header();
?>
<?php
$allPages = new WP_Query(array( 'pagename' => 'experiences'));
if ($allPages->have_posts()) :
while ($allPages->have_posts()) : $allPages->the_post(); ?>
<section id="<?php echo $post->post_name?>" class="default-section " data-scroll-reveal="enter from the bottom over .5s">
<div class="section-heading ">
<h2 class="section-title"><?php the_title()?></h2>
</div>
<div class="<?php echo $post->post_name?>-container">
<div class="container">
<div class="experience-items">
<?php
$args = array( 'orderby' => 'date',
'order' => 'DESC',
'post_type' => 'experience');
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
?>
<div class="experience-item" data-scroll-reveal="enter from the bottom over .5s">
<div class="name-designation" data-scroll-reveal="enter from the left after .5s">
<h3 class="designation"><?php echo get_post_meta($post->ID, 'experience_position', true);?></h3>
<p class="name-of-org"><?php echo get_post_meta($post->ID, 'experience_company', true);?></p>
</div>
<div class="stay-time <?php echo get_post_meta($post->ID, 'experience_css', true);?>">
<?php echo get_post_meta($post->ID, 'experience_fromYear', true);?><br>
-<br>
<?php echo get_post_meta($post->ID, 'experience_toYear', true);?>
</div>
<div class="comments" data-scroll-reveal="enter from the right after .5s">
<?php the_excerpt()
?>
<a href="<?php the_permalink()?>">Read more <i class="fa fa-external-link"></i></a>
</div>
</div>
<?php
endwhile;
wp_reset_postdata();
?>
</div>
</div>
</div>
</section>
<?php endwhile;
else :
// fallback no content message here
endif;
wp_reset_postdata();?>
<?php
get_footer();
?>