-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-portfolio-two.php
74 lines (60 loc) · 1.85 KB
/
page-portfolio-two.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
<?php
/*
Template Name: Portfolio with 2 Columns
*/
?>
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
get_header();
?>
<div class="row">
<div class="sixteen columns">
<ul id="menu-categories" class="sub-menu">
<?php wp_list_categories('orderby=name&title_li='); ?>
</ul>
</div>
<div class="sixteen columns">
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php the_content(''); ?>
<!-- <?php trackback_rdf(); ?> -->
<?php endwhile; endif; ?>
</div>
<?php
$myqueryname = $wp_query;
$wp_query = null;
$wp_query = new WP_Query();
$wp_query->query('showposts=8'.'&paged='.$paged);
?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php if ( has_post_thumbnail() ) { ?>
<div class="eight columns thumbnail">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail('small-thumb'); ?>
<div class="details">
<h3><?php the_title(); ?></h3>
<p>Read more</p>
</div>
</a>
</div>
<?php } else { ?>
<div class="eight columns standard-format">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
<p><a href="<?php the_permalink(); ?>">Read more</a></p>
</div>
<?php } ?>
<?php endwhile; endif; ?>
<div class="sixteen columns center">
<nav class="posts-navigation">
<ul>
<li class="newer"><?php previous_posts_link('Newer Posts'); ?></li>
<li class="older"><?php next_posts_link('Older Posts'); ?></li>
</ul>
</nav>
</div>
<?php $wp_query = null; $wp_query = $myqueryname;?>
<?php wp_reset_query(); ?>
</div>
<?php get_template_part( 'testimonials' ); ?>
<?php get_footer(); ?>