[wp-hackers] get_archives

Mike Little mike at zed1.com
Tue May 30 08:39:15 GMT 2006

On 5/30/06, Roy Schestowitz <r at schestowitz.com> wrote:
> ___/ On Mon 29 May 2006 20:34:50 BST, [ Indranil Dasgupta ] wrote : \___
> > Hi,
> >
> > Is there any way to edit the output of <?php get_archives(); ?> tag?
> > Now, it only shows the articles. I want it to also show the date on
> > which it was made. Do I have to edit a core file? which is it? And
> > how?
> > thanks
> Hi Indranil,
> <?php get_archives(); ?> is not truly a tag, but you can change its effect
> directly by changing the function get_archives() to fetch article date from
> the table and output it.

It is always a bad idea to hack the core files.  And by the way, the
function to start with should probably be wp_get_archives()

But you should try the Customizable Post Listings plugin

That will do what you want without having to hack anything.

Mike Little

More information about the wp-hackers mailing list