forked from mattwiebe/My-Portfolio-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive-sd_portfolio.php
More file actions
35 lines (33 loc) · 840 Bytes
/
archive-sd_portfolio.php
File metadata and controls
35 lines (33 loc) · 840 Bytes
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
<?php get_header(); ?>
<div class="flexslider-container">
<div class="flexslider">
<ul class="slides">
<?php // start loop
/*
query_posts(array(
'post_type' => 'sd_portfolio',
'posts_per_page' => -1,
'order' => 'DESC',
'orderby' => 'title'
));
*/
while( have_posts() ) : the_post(); ?>
<li <?php post_class() ?>>
<a href="<?php the_permalink(); ?>" title="View ‘<?php the_title_attribute() ?>’">
<h1 class="entry-title portfolio-title"><?php the_title() ?></h1>
<?php the_post_thumbnail('sd_portfolio', array(
// I don't like images to be titled - normally just repeats the filename
'title' => false,
// add our own class to the image for easy styling
'class' => 'portfolio-img'
)); ?>
</a>
</li>
<?php //end loop
endwhile;
# wp_reset_query();
?>
</ul>
</div>
</div>
<?php get_footer(); ?>