-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
48 lines (38 loc) · 1.22 KB
/
single.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
<?php
/**
* The Template for displaying all single posts
*/
get_header();
?>
<div class="content-wide" role="main">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
?>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<p class="quiet">Posted by <?php print get_the_author_link() ?> in <?php print get_the_category_list( ', ' ) ?>.</p>
<hr />
<h1>Comments</h1>
<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
this.page.url = '<?php the_permalink() ?>'; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = '<?php the_ID() ?>'; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = '//st-matthews-fcu.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<?php
endwhile;
endif;
?>
</div>
<?php
get_footer();
?>