-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive-dataset.php
32 lines (28 loc) · 981 Bytes
/
archive-dataset.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
<?php get_header(); ?>
<section id="content">
<div id="map-archive" class="gray-page archive-page">
<?php
// Muestra 8 dataset por pagina.
$paged = 1;
if(get_query_var('paged')) $paged = get_query_var('paged');
if(get_query_var('page')) $paged = get_query_var('page');
$wp_query = new WP_Query();
$wp_query->query('showposts=8&post_type=dataset'.'&paged='.$paged);
if($wp_query->have_posts()) :
?>
<section id="datasets" class="dataset-loop-section archive-list">
<div class="page-title row">
<div class="container">
<div class="twelve columns">
<h1><?php _e('Datasets', 'jeo'); ?></h1>
</div>
</div>
</div>
<div class="container">
<?php get_template_part('loop', 'dataset'); ?>
</div>
</section>
<?php endif; ?>
</div>
</section>
<?php get_footer(); ?>