-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-part-sponsors.php
81 lines (79 loc) · 1.9 KB
/
template-part-sponsors.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
72
73
74
75
76
77
78
79
80
81
<section id="organizatorzy" class="main">
<div class="org">
<div class="container sponsorowane-container">
<h2>Organizatorzy</h2>
<?php
$args = array(
'post_type' => 'sponsorowane ',
'category_name' => 'organizatorzy'
);
$products = new WP_Query( $args );
if( $products->have_posts() ) {
while( $products->have_posts() ) {
$products->the_post();
?>
<div class="wspolpraca">
<a class="single-link" href="<?php the_title(); ?>">
<?php the_post_thumbnail('full'); ?>
</a>
</div>
<?php
}
}
else {
echo 'Nic a nic';
}
?>
</div>
<div class="container sponsorowane-container">
<h2>Współpraca</h2>
<?php
$args = array(
'post_type' => 'sponsorowane ',
'category_name' => 'wspolpraca'
);
$products = new WP_Query( $args );
if( $products->have_posts() ) {
while( $products->have_posts() ) {
$products->the_post();
?>
<div class="wspolpraca">
<a class="single-link" href="<?php the_title(); ?>">
<?php the_post_thumbnail('full'); ?>
</a>
</div>
<?php
}
}
else {
echo 'Nic a nic';
}
?>
</div>
<div class="container sponsorowane-container">
<h2>Sponsorzy</h2>
<?php
$args = array(
'post_type' => 'sponsorowane ',
'category_name' => 'sponsorzy'
);
$products = new WP_Query( $args );
if( $products->have_posts() ) {
while( $products->have_posts() ) {
$products->the_post();
?>
<div class="wspolpraca">
<a class="single-link" href="<?php the_title(); ?>">
<?php the_post_thumbnail('full'); ?>
</a>
</div>
<?php
}
}
else {
echo 'Nic a nic';
}
?>
</div>
</div>
</section>