Skip to content

Instantly share code, notes, and snippets.

@juanfra
Created May 17, 2015 21:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanfra/d434bcc629647bc98393 to your computer and use it in GitHub Desktop.
Save juanfra/d434bcc629647bc98393 to your computer and use it in GitHub Desktop.
flatbase-article-order.php
<?php
//* Do NOT include the opening php tag
// filter the knowledgebase parser
function nice_knowledgebase_article_order( $args ){
$args['orderby'] = 'date'; // date, rand, menu_order - check the codex for the different options
$args['order'] = 'ASC'; // ASC or DESC. You chose
return $args;
}
add_filter( 'nicethemes_knowledgebase_default_args', 'nice_knowledgebase_article_order' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment