-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout_services.php
More file actions
43 lines (43 loc) · 1.19 KB
/
Copy pathlayout_services.php
File metadata and controls
43 lines (43 loc) · 1.19 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
<?php
/*
Template Name: Services Page
*/
global $pageID;
global $pageClass;
$pageClass = "two-column";
$pageID = "services";
get_header();
?>
<?php
$custom_query = array('posts_per_page'=> -1, 'numberposts'=> 0,'offset'=> 0,'orderby'=> 'post_date','order'=> 'DESC','post_type'=> 'service','post_status'=> 'publish');
$custom = new WP_Query($custom_query);
?>
<div id='content'>
<div id='primary'>
<h2 class='page-heading'><span class='section'><?php the_title(); ?></span></h2>
<div class="text-content">
<?php
while ( have_posts() ) : the_post();
the_content();
endwhile;
?>
</div>
<ul class="services_list">
<?php
while ( $custom->have_posts() ) : $custom->the_post();
$image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'thumbnail');
?>
<li>
<?php echo get_the_post_thumbnail( $post_id, 'thumbnail'); ?>
<h3><?php the_title(); ?></h3>
<div class="text-content">
<?php the_content() ?>
</div>
</li>
<?php endwhile; ?>
</ul>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>