Skip to content

Commit

Permalink
IDI-104: Update video list in sidebar to show only 5 most recent
Browse files Browse the repository at this point in the history
  • Loading branch information
acheetham committed Mar 15, 2013
1 parent 76b49b9 commit cdf6835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sidebar-news.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
</ul>

<?php
query_posts('tag=video'); // query to show all posts independant from what is in the center;
query_posts('tag=video&posts_per_page=5'); // query to show posts tagged video;
if (have_posts()) :
?>
<h3>Videos</h3>
<h3>Recent Videos</h3>
<ul>
<?php
while (have_posts()) :
Expand Down

0 comments on commit cdf6835

Please sign in to comment.