-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpage-test-2.php
71 lines (42 loc) · 1.1 KB
/
page-test-2.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
<?php
/**
* Description of Template goes here
*
Template Name: Page
*/
?>
<?php get_header(); ?>
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php
// $query = new WP_Query( 'post_type=&type=&posts_per_page=10&titlesearch=average' );
// while($query->have_posts()) : $query->the_post();
// echo '<h2>'.get_the_id().'<a href="'.get_permalink().'">'.get_the_title().'</a></h2>';
// // the_title();
// endwhile;
// wp_reset_postdata();
?>
<div id="intro" <?php post_class(); ?>>
<header class="fact-header">
<h1><?php the_title(); ?></h1>
</header>
<?php the_content(); ?>
</div>
<?php if (wp_get_object_terms($post->ID, 'feature')): ?>
<div class="utilities">
<div class="print-feature"></div>
</div>
<?php endif ?>
</div>
<?php endwhile; endif; ?>
<?php get_sidebar() ?>
<script type="text/javascript">
jQuery(function ($) {
$(".calloutnumber:contains('ppt.')").each(function(){
$this = $(this);
html = $this.html();
html = html.replace(/ppt./gi, '<span class="light">ppt.</span>' );
$this.html(html);
})
});
</script>
<?php get_footer(); ?>