-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage-videopicks.php
59 lines (43 loc) · 1.38 KB
/
page-videopicks.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
<?php
/*
Template Name: Videopicks
*/
?>
<?php get_header(); ?>
<h1><?php _e('TED Video Picks', 'roots');?></h1>
<div class="row">
<div class="eight columns">
<?php
$args = array(
'post_type' => array(
'videopick'
),
);
query_posts($args);
?>
<?php while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<h2><a href="<?php the_permalink(); ?>">Video Pick: <?php the_title(); ?></a></h2>
<p class="post-<?php the_ID(); ?>-meta">发表时间 <?php the_time('F jS, Y') ?><span><?php //comments_number( '0 Comments', '1 Comment', '% Comments' ); ?></span></p>
</header>
<div class="entry-content">
<a href="<?php the_permalink(); ?>" class="readMore">
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('video_full');
}
?>
</a>
<?php the_excerpt(); ?>
</div>
</article>
<?php endwhile; // End the loop ?>
</div> <!-- eight columns -->
<aside id="sidebar" class="four columns" role="complementary">
<div class="container">
<?php dynamic_sidebar("Blog Sidebar"); ?>
</div>
</aside><!-- /#sidebar -->
</div> <!-- row -->
<?php get_footer(); ?>