-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-worldwide.php
55 lines (36 loc) · 1.23 KB
/
page-worldwide.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
<?php
/*
Template Name: Worldwide Template
*/
get_header(); ?>
<div id="content" class="site-content container">
<div id="primary" class="content-area col-sm-12 col-md-8">
<main id="main" class="site-main" role="main">
<h1 class="widget-title"><?php _e( 'Nueva Ecija Worldwide', 'dazzling' ); ?></h1>
<?php while ( have_posts() ) : the_post(); ?>
<h4 class="widget-sub-title"><?php the_content(); ?></h4>
<?php endwhile; // end of the loop. ?>
<?php
$args = array(
'post_type' => 'worldwide',
'posts_per_page' => -1,
'orderby' => 'date',
'order' => 'DESC',
);
$query = new WP_Query( $args );
?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<?php
/* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
?>
<hr>
<?php get_sidebar( 'home' ); ?>
<?php endwhile; // end of the loop. ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>