Created
February 19, 2018 15:36
-
-
Save versluis/3645165878facd7473b8e6ab569e4121 to your computer and use it in GitHub Desktop.
List all posts in WordPress
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
// list all articles on this site | |
// https://codex.wordpress.org/Template_Tags/wp_get_archives | |
$args = array( | |
'type' => 'postbypost', | |
'limit' => '', | |
'format' => 'html', | |
'before' => '', | |
'after' => '', | |
'show_post_count' => false, | |
'echo' => 1, | |
'order' => 'DESC' | |
); | |
wp_get_archives( $args ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment