-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-Blog.php
64 lines (47 loc) · 1.23 KB
/
page-Blog.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
<?php
/**
* Template Name: Blog
*
* .
*
* @package Odin
* @since 2.2.0
*/
get_header('blog');
?>
<div class="row blog-container">
<div id="primary" class="<?php echo odin_classes_page_sidebar(); ?>">
<main id="main-content" class="site-main" role="main">
<article id="slider">
<?php echo do_shortcode('[brasa_slider name=blog]');?>
</article>
<?php
$args = array(
'post_type' => 'post',
'posts_per_page'=> 99999
// 'meta_key' => 'ordem',
// 'orderby' => 'meta_value',
// 'order' => 'ASC'
);
$query = new WP_Query( $args ); // the query
$query_secao = new WP_Query( $args ); ?>
<?php if ( $query_secao->have_posts() ) : ?>
<!-- pagination here -->
<!-- the loop -->
<?php while ( $query_secao->have_posts() ) : $query_secao->the_post();
get_template_part( 'content', 'posts' );
endwhile; ?>
<!-- end of the loop -->
<?php
// Page navigation.
odin_paging_nav();
?>
<?php wp_reset_postdata(); ?>
<?php endif;
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar();?>
</div><!-- #row -->
<?php
get_footer('page');