-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpage-subprojetos.php
More file actions
42 lines (31 loc) · 962 Bytes
/
page-subprojetos.php
File metadata and controls
42 lines (31 loc) · 962 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
36
37
38
39
40
41
42
<?php
get_header(); ?>
<div class="container-header">
<div class="content-header">
<div class="title">
<h1>Nossos Subprojetos</h1>
</div>
</div>
</div>
<div class="container">
<div class="cards-grid">
<?php
$args = array(
'post_type' => 'subprojetos',
'posts_per_page' => -1,
'post_status' => 'publish',
'orderby' => 'date',
'order' => 'DESC'
);
$query_subprojetos = new WP_Query( $args );
if ( $query_subprojetos->have_posts() ) :
while ( $query_subprojetos->have_posts() ) : $query_subprojetos->the_post();
get_template_part('template-parts/content', 'card');
endwhile;
wp_reset_postdata();
else : ?>
<p>Nenhum subprojeto encontrado no momento.</p>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>