-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive-slide.php
More file actions
57 lines (45 loc) · 1.2 KB
/
Copy patharchive-slide.php
File metadata and controls
57 lines (45 loc) · 1.2 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
<?php get_header(); ?>
<!-- Começa código da página -->
<section class="cabecalho-index">
<div>
<h1>Slides</h1>
</div>
</section>
<!-- post -->
<div class="container">
<div class="archive_plano_ensino">
<?php
$archiveConteudo = new WP_Query(array(
'post_type' => is_archive() ? get_queried_object()->name : false,
'category_name' => htmlspecialchars($_GET["mat"]),
'order' => 'ASC',
'orderby' => 'title',
'posts_per_page' => -1,
));
if($archiveConteudo->have_posts()){
while($archiveConteudo->have_posts()) {
$archiveConteudo->the_post();
?>
<div class="post-page">
<div class="grid-12">
<div class="info-index-material">
<a href="<?php
if(get_field('url_artigo')) {
the_field('url_artigo');
}
if(get_field('arquivo_download')) {
the_field('arquivo_download');
}
?>" target="_blank"><h2><?php the_title(); ?></h2></a>
</div>
</div>
</div>
<?php }} else { ?>
<div class="imagem-sem-conteudo">
<img src="<?php echo get_template_directory_uri(); ?>/img/no-data-amico.svg" alt="">
</div>
<?php } ?>
</div>
</div>
<!-- Fecha while -->
<?php get_footer(); ?>