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

Re: [wp-hackers] get_archives

  • To: wp-hackers@xxxxxxxxxxxxxxxxxxxx
  • Subject: Re: [wp-hackers] get_archives
  • From: Roy Schestowitz <r@xxxxxxxxxxxxxxx>
  • Date: Tue, 30 May 2006 06:22:58 +0100
  • Delivery-date: Tue, 30 May 2006 06:23:00 +0100
  • Envelope-to: s@schestowitz.com
  • In-reply-to: <447B4CDA.6090001@troidus.com>
  • References: <447B4CDA.6090001@troidus.com>
  • User-agent: Internet Messaging Program (IMP) H3 (4.0.3)
___/ 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.

Here is where you can change this:

,----[ Snippet ]
| roy@BAINE:~/public_html/wordpress> fgrep -R 'function get_archives' *
|
| wp-includes/template-functions-general.php:function
get_archives_link($url,
|  $text, $format = 'html', $before = '', $after = '') {
|
| wp-includes/template-functions-general.php:function get_archives($type='',
|  $limit='', $format='html', $before = '', $after = '', $show_post_count =
|  false) {
`----

Best wishes,

Roy

--
Roy S. Schestowitz
http://Schestowitz.com  | Free as in Free Beer ¦  PGP-Key: 0x74572E8E
 6:15am  up 32 days 12:47,  9 users,  load average: 0.90, 0.82, 0.88
     http://iuron.com - semantic engine to gather information


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