-
-
Save juanfra/d434bcc629647bc98393 to your computer and use it in GitHub Desktop.
flatbase-article-order.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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