Show the post date using the wp_get_archives() function?
I have some doubt about the wp_get_archives()
function
In my website I have create the following page template that use the wp_get_archives()
function to show the posts list:
?php
/**
* Template Name: Posts Archive
*
* A custom page template for displaying all posts.
*
* The "Template Name:" bit above allows this to be selectable
* from a dropdown menu on the edit page screen.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header();
?
!-- Contenuti (griglia) --
div class="container"
!-- Lead presentazione --
section id="presentazione"
div class="row"
div class="col-sm-12"
!--h1 class="text-center"smallAssociazione per la Tutela dei Diritti Umani del Popolo Eritreo/small/h1--
h1 class="text-center title"Associazione per la Tutela dei Diritti Umani del Popolo Eritreo/h1
h1 class="text-center leadTitle"Association in Defense of the Human Rights of the Eritrean People/h1
!--
p class="lead text-center"
Association in Defense of the Human Rights of the Eritrean People
/p
--
/div!-- /.col-sm-12 --
/div!-- /.row --
/section!-- /section presentazione --
!-- Progetti in evidenza --
header class="header-sezione"
h2Archivio post/h2
/header
ul
?php wp_get_archives('type=postbypost'); ?
/ul
/section
/div
?php get_footer(); ?
It work and this is the result (I only need to set the right CSS related to the font size)
Ok, now my question is: using the wp_get_archives()
function can I show the post date before each posts?.
I want to obtain something like:
10/04/2014 - POST TITLE
rather than the mere post title.
Can I do it passing some parameters to the wp_get_archives()
function? Or the only solution is do not use this function and create a custom loop into my template page?
Topic wp-get-archives functions Wordpress
Category Web