• So im sure that this must be possible, but i cant figure out how do to it, so any help would be appreciated. i want to list my archives by monthly type, but i only want to do it for one category. i have found that by using this URL my.domain.com/?cat=2&m=200508 (or my.domain.com/?m=200508&cat=2) i can get this result (with category 2 and sept of 05), but is there any predefined wordpress php function to call these automatically (so that i dont have to manually add a link every month) im sure a plugin can be written, but im not quite sure where to start, i thought about looking in the get_archive functions but am not sure where those are housed. Any ideas, or already existing solutions??

    thank you every one!! Keep up the great work!!!

Viewing 1 replies (of 1 total)
  • Thread Starter laxstar2

    (@laxstar2)

    more on this:

    ok so i found get_archive in wp-includes/template-functions-general.php
    i found that if i change line 304 from this:

    $url = get_month_link($arcresult->year, $arcresult->month);

    to this

    $url = get_month_link($arcresult->year, $arcresult->month).’&cat=2′;

    i get what i want (except that it yields months when other categories had posted and the desired one did not ). but i find this method kinda inelegant. I would rather use a plugin, maybe that adds a new function ‘get_archiveBYcat’ or something but once again i dont know really how to write that, any ideas?? thanks

Viewing 1 replies (of 1 total)
  • The topic ‘archive by category’ is closed to new replies.