* @copyright Copyright (c) 2013-2014, Arthur Gareginyan
* @link http://mycyberuniverse.tk/anarcho-notepad.html
* @license http://www.gnu.org/licenses/gpl-3.0.html
*/
?>
>
Pages:
Posts:
'."\n".'Category: '.$cat->cat_name.'
'."\n";
echo ''."\n";
$query = new WP_Query( array( 'posts_per_page' => '-1' ) ); //-1 shows all posts per category. 1 to show most recent post.
while ($query->have_posts()): $query->the_post();
$category = get_the_category();
//Display a post once, even if it is in multiple categories/subcategories. Lists the post in the first Category displayed.
if ($category[0]->cat_ID == $cat->cat_ID) {?>
- »
()
Archives: