This repository was archived by the owner on Nov 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate_portfolio.php
More file actions
64 lines (58 loc) · 1.55 KB
/
Copy pathtemplate_portfolio.php
File metadata and controls
64 lines (58 loc) · 1.55 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
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
<?php
/*
* Template Name: Portfolio
* Description: A Page Template showing a portfolio
*/
get_header();
?>
<div class="row">
<div class="large-6 columns verticalBar">
<h1><?php _e('Sections', 'noborders');?></h1>
<ul data-orbit>
<?php
$args = array(
'posts_per_page' => 4,
'paged' => $paged,
'cat' => 5
);
$latest = new WP_Query( $args );
while( $latest->have_posts() ) : $latest->the_post(); ?>
<li>
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('original');
}
?>
<div class="orbit-caption">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</div>
</li>
<?php endwhile; ?>
</ul>
</div>
<div class="large-6 columns">
<h1><?php _e('Countries', 'noborders');?></h1>
<ul data-orbit>
<?php
$args = array(
'posts_per_page' => 4,
'paged' => $paged,
'cat' => 6
);
$latest = new WP_Query( $args );
while( $latest->have_posts() ) : $latest->the_post(); ?>
<li>
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('original');
}
?>
<div class="orbit-caption">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</div>
</li>
<?php endwhile; ?>
</ul>
</div>
</div>
<?php get_footer(); ?>