wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_archives › WordPress Function

Desde0.71
Obsoleto2.1.0
get_archives ( $type = '', $limit = '', $format = 'html', $before = '', $after = '', $show_post_count = false )
Parâmetros: (6)
  • (string) $type
    Required: No
    Padrão: (empty)
  • (string) $limit
    Required: No
    Padrão: (empty)
  • (string) $format
    Required: No
    Padrão: 'html'
  • (string) $before
    Required: No
    Padrão: (empty)
  • (string) $after
    Required: No
    Padrão: (empty)
  • (bool) $show_post_count
    Required: No
    Padrão: false
Ver:
Retorna:
  • (string|null)
Definido em:
Codex:

Retrieves a list of archives.



Fonte

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);
}