wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_archives › WordPress Function

Depuis0.71
Dépréciée2.1.0
get_archives ( $type = '', $limit = '', $format = 'html', $before = '', $after = '', $show_post_count = false )
Paramètres: (6)
  • (string) $type
    Requis: Non
    Défaut: (vide)
  • (string) $limit
    Requis: Non
    Défaut: (vide)
  • (string) $format
    Requis: Non
    Défaut: 'html'
  • (string) $before
    Requis: Non
    Défaut: (vide)
  • (string) $after
    Requis: Non
    Défaut: (vide)
  • (bool) $show_post_count
    Requis: Non
    Défaut: false
Voir:
Retourne:
  • (string|null)
Défini(e) dans:
Codex:

Retrieves a list of archives.



Source

function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) {
	_deprecated_function( __FUNCTION__, '2.1.0', 'wp_get_archives()' );
	$args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
	return wp_get_archives($args);
}