-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-press-releases.php
More file actions
90 lines (79 loc) · 3.11 KB
/
single-press-releases.php
File metadata and controls
90 lines (79 loc) · 3.11 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
get_header();?>
<div class="col-sm-8">
<?php /* The loop */ ?>
<?php if(have_posts()){ while ( have_posts() ) { the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php if ( has_post_thumbnail() && ! post_password_required() ) { ?>
<div class="entry-thumbnail">
<?php the_post_thumbnail(); ?>
</div>
<?php } //.entry-thumbnail ?>
<?php if ( is_single() ) { ?>
<h2 class="entry-title">
<?php the_title(); ?>
<?php edit_post_link( __( 'Edit', ZEETEXTDOMAIN ), '<small class="edit-link pull-right">', '</small>' ); ?>
</h2>
<?php } else { ?>
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
<?php if ( is_sticky() && is_home() && ! is_paged() ) { ?>
<sup class="featured-post"><?php _e( 'Sticky', ZEETEXTDOMAIN ) ?></sup>
<?php } ?>
<?php edit_post_link( __( 'Edit', ZEETEXTDOMAIN ), '<small class="edit-link pull-right">', '</small>' ); ?>
</h2>
<?php } //.entry-title ?>
</header><!--/.entry-header -->
<?php if ( is_search() ) { ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
<?php } else { ?>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', ZEETEXTDOMAIN ) ); ?>
</div>
<?php } //.entry-content ?>
<footer>
<?php zee_link_pages(); ?>
</footer>
</article><!--/#post-->
<?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) { ?>
<?php get_template_part( 'author-bio' ); ?>
<?php } ?>
<?php } } ?>
</div>
<div id="sidebar" class="col-sm-4" role="complementary">
<div class="sidebar-inner">
<aside class="widget-area">
<p class="buble-title">Press<span>Releases</span></p>
<ul class="latest-blogs">
<?php
$queryObject = new WP_Query( 'post_type=press-releases&posts_per_page=-1&orderby=date&order=DESC' );
// The Loop!
if ($queryObject->have_posts()) {
?>
<?php
while ($queryObject->have_posts()) {
$queryObject->the_post();
?>
<li>
<h3>
<div class="date-post">
<span class="day-post"><?php echo get_the_date('d'); ?></span>
<span class="month-post"><?php echo get_the_date('M'); ?></span>
</div>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h3>
</li>
<?php
}
?>
<?php
}
?>
</ul>
</aside>
</div>
</div>
<?php get_footer();