-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
24 lines (22 loc) · 786 Bytes
/
index.php
File metadata and controls
24 lines (22 loc) · 786 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
<?php
$language = get_query_var('lang');
$feeds = Alexa_Reader::get_recent_feed( $language, -1 );
if ( $feeds->have_posts() ) {
while ( $feeds->have_posts() ) {
$feeds->the_post();
$item_channel = wp_get_post_terms( get_the_ID(), 'channel', [ 'fields' => 'names' ] );
if ( is_array( $item_channel ) ) {
$item_channel = 'do ' . $item_channel[0];
} else {
$item_channel = '';
}
?>
<article>
<h1><a href="<?php echo get_the_permalink(); ?>" title=""><?php echo get_the_title(); ?></a></h1>
<p><?php echo get_the_content(); ?></p>
<span>Em <?php echo get_the_date(); ?> por <?php echo get_the_author(); ?> <?php echo $item_channel; ?></span>
</article>
<?php
}
}
?>