projects
/
WP-Themes
/
migcsa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a25fac
)
Only feed posts of cat 'news' to frontpage
author
Laury GvR
<laury@gaslightmedia.com>
Mon, 30 Apr 2018 19:42:57 +0000
(15:42 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Mon, 30 Apr 2018 19:42:57 +0000
(15:42 -0400)
parts/blog-feed-front.php
patch
|
blob
|
history
diff --git
a/parts/blog-feed-front.php
b/parts/blog-feed-front.php
index
8660db6
..
6913cd3
100644
(file)
--- a/
parts/blog-feed-front.php
+++ b/
parts/blog-feed-front.php
@@
-1,4
+1,4
@@
-<?php $args = array( 'numberposts' => 4);?>
+<?php $args = array( 'numberposts' => 4
, 'category_name' => 'news'
);?>
<div id="home-feed-posts">
<?php
$lastposts = get_posts( $args );