-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-tabele.php
34 lines (26 loc) · 903 Bytes
/
single-tabele.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
<?php get_template_part('templates/content-single', get_post_type()); ?>
<div class="tables-sources">
Źródła:
<a href="http://www.nal.usda.gov/" target="_blank">http://www.nal.usda.gov</a>
<a href="http://nutritiondata.self.com/" target="_blank">http://nutritiondata.self.com</a>
</div>
<?php
wp_reset_query();
wp_reset_postdata();
$tablesargs = array(
'post_type' => 'tabele',
'posts_per_page' => -1,
'post__not_in' => array($post->ID),
"order" => 'ASC',
'orderby' => 'title'
);
$tablesloop = new WP_Query($tablesargs);
if ($tablesloop) : ?>
<div class="link-list">
<?php while ($tablesloop->have_posts()) : $tablesloop->the_post(); ?>
<a class="tables-link" href="<?php the_permalink() ?>" title="">
<i class="fa fa-table"></i><span><?php the_title(); ?></span>
</a>
<?php endwhile; ?>
</div>
<?php endif; ?>