Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: [wp-hackers] get_archives

On 5/30/06, Roy Schestowitz <r@xxxxxxxxxxxxxxx> 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() http://codex.wordpress.org/Template_Tags/wp_get_archives

But you should try the Customizable Post Listings plugin
http://www.coffee2code.com/archives/2004/08/27/plugin-customizable-post-listings/

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

Mike
--
Mike Little
http://zed1.com/
_______________________________________________
wp-hackers mailing list
wp-hackers@xxxxxxxxxxxxxxxxxxxx
http://lists.automattic.com/mailman/listinfo/wp-hackers

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index