-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
35 lines (31 loc) · 998 Bytes
/
footer.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
<footer role="footer">
<p>Jérémy Thiry 2013</p>
<?php
// the query
$the_query = new WP_Query( array( 'post_type' => 'socials')); ?>
<?php if ( $the_query->have_posts() ) : ?>
<!-- pagination here -->
<ul>
<!-- the loop -->
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<li>
<a href="<?php the_field('lien') ?>" class="<?php the_field('nom') ?>" title="<?php the_title() ?>"></a>
</li>
<?php endwhile; ?>
<!-- end of the loop -->
</ul>
<!-- pagination here -->
<?php wp_reset_postdata(); ?>
<?php else: ?>
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>
</footer>
</div>
<script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src='//www.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>