-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-work.php
82 lines (73 loc) · 2.77 KB
/
page-work.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
get_header();
global $post;
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
?>
<article class="work bg-image-wrap" data-type="background" data-background="<?php echo($image[0]); ?>">
<section class="centerpiece intro-header">
<h1>Work</h1>
<p><?php echo($post->post_content); ?></p>
</section>
</article>
<article class="featured-projects">
<h1>Featured Projects</h1>
<?php
$work_cat_args = array(
'post_type' => 'page',
'numberposts'=> -1,
'posts_per_page'=> -1,
'post_status'=> 'publish',
'post_parent'=> 5,
//'orderby'=> 'title',
'order'=> 'ASC',
);
$work_cats = new WP_Query( $work_cat_args );
if ( $work_cats->have_posts() ) while ( $work_cats->have_posts() ) : $work_cats->the_post();
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
?>
<section class="col-4-12">
<figure class="featured" data-type="background" data-background="<?php echo($image[0]); ?>">
<a href="<?php the_permalink(); ?>">
<h2 class="project-title"><?php the_title(); ?></h2>
</a>
</figure>
</section>
<?php
endwhile;
wp_reset_postdata();
?>
</article>
<article class="testimonial" data-type="background" data-background="<?php $testimg = get_post_meta($post->ID, 'background_image'); echo(wp_get_attachment_url($testimg[0])); //echo(wp_get_attachment_url($testimg[0])); ?>">
<section class="centerpiece">
<blockquote class="blockquote"><?php $test = get_post_meta($post->ID, 'testimonial'); echo($test[0]); ?></blockquote>
<p>-<?php $testif = get_post_meta($post->ID, 'testifier'); echo($testif[0]); ?></p>
<p><?php $jobtit = get_post_meta($post->ID, 'job_title'); echo($jobtit[0]); ?></p>
</section>
</article>
<article class="work-clients">
<section class="centerpiece">
<h1 class="secondary-heading">Clients</h1>
<p><?php $about = get_post_meta($post->ID, 'about_clients'); echo($about[0]); ?></p>
</section>
<ul>
<?php
$client_list_args = array(
'post_type' => 'client',
'numberposts'=> -1,
'posts_per_page'=> -1,
'post_status'=> 'publish',
'orderby'=> 'title',
'order'=> 'ASC',
);
$client_list = new WP_Query( $client_list_args );
if ( $client_list->have_posts() ) while ( $client_list->have_posts() ) : $client_list->the_post();
?>
<li class="col-2-12">
<img src="<?php the_field('client_logo_image'); ?>"/>
</li>
<?php
endwhile;
?>
</ul>
</article>
<?php get_footer(); ?>