-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformat-gallery.php
More file actions
34 lines (28 loc) · 1.22 KB
/
format-gallery.php
File metadata and controls
34 lines (28 loc) · 1.22 KB
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
<div class="slideshow">
<div class="flexslider">
<ul class="slides">
<?php $data = array(
'post_parent' => $id,
'post_type' => 'attachment',
'post_mime_type' => 'image',
'order' => 'ASC',
'orderby' => 'menu_order',
'numberposts' => -1
); ?>
<?php $images = get_posts($data); foreach( $images as $image ) { $imageurl = wp_get_attachment_url($image->ID); echo '<li><img src="'.$imageurl.'" /></li>' . "\n"; } ?>
</ul>
</div>
</div>
<div class="posttitle">
<h2 class="headline"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="postdate">
<p><i class="icon-time"></i> <?php response_posted_on(); ?></p>
</div>
</div>
<div class="article">
<?php the_excerpt(); ?>
</div>
<div class="postmeta">
<p class="left"><i class="icon-user"></i> <?php _e("Posted by", 'organicthemes'); ?> <?php the_author_posts_link(); ?></p>
<p class="right"><i class="icon-comment"></i> <a href="<?php the_permalink(); ?>#comments"><?php comments_number(__("Leave a Comment", 'organicthemes'), __("1 Comment", 'organicthemes'), '% Comments'); ?></a></p>
</div>