forked from KeywordDomains/Lehti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeature-multiple.php
70 lines (66 loc) · 1.52 KB
/
feature-multiple.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
<div id="feature" class="small multiple slider">
<div class="current">
<ul>
<?php
$boloday = get_option('boloday');
$args = array(
'posts_per_page' => $boloday[5],
'tag' => $boloday[4],
'orderby' => 'date',
'order' => 'DESC'
);
query_posts( $args );
while(have_posts() ) : the_post();
?>
<li>
<div class="desktop">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('feature_multiple'); ?>
</a>
</div>
<div class="mobile">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('homepage_thumbnail'); ?>
</a>
</div>
<div class="inner">
<div class="article">
<div class="nav">
<span class="pre">‹</span>
<span class="next">›</span>
</div>
<h2 class="gamma post-title">
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
</h2>
</div>
</div>
</li>
<?php
endwhile;
wp_reset_query();
?>
</ul>
</div>
<div class="others">
<?php
$args = array(
'posts_per_page' => 3,
'tag' => $boloday[4],
'orderby' => 'date',
'order' => 'DESC',
'offset' => $boloday[5]
);
query_posts( $args );
while(have_posts()) : the_post(); ?>
<div class="entry">
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail( 'square' ); ?>
</a>
</div>
<h3><a href="<?php the_permalink(); ?>" class="more"><?php the_title(); ?></a></h3>
</div>
<?php endwhile;
wp_reset_query(); ?>
</div>
</div>