[wp-hackers] Making use of "nicer" url for archive pages?

scriptygoddess scriptygoddess at gmail.com
Wed Nov 3 01:02:15 UTC 2004


In my "next/previous day" plugin, I originally did the "shortcut" way
of producing the URLs for the archive pages:

ie.
a href=\"".$homeurl."/?m=".$previousYear."\" etc
(where previousYear is .. amazingly enough ;-) a year)
for example would display as a href="yoursite.com/?m=2003"
and
a href=\"".$homeurl."/?m=".$forUrl."\"
(where forUrl is a date structured with YYYYMM (for month archive) or
YYYYMMDD (for day archive)
would display as a href="yoursite.com/?m=200410 or yoursite.com/?m=20041005

Is there a "quick and easy" function I can call that will format these
URLs so that they show up as the person has indicated them to in their
preferences?

(kind of like the way get_permalink() will display the URL if you pass
it a post ID...)

-Jenn

-- 
-----------------------------------------
www.scriptygoddess.com



More information about the hackers mailing list