changed Archive function search by name

Fixed the broken view by cat ID archive function. Changed te function to
work with names instead of ID. Need to rewrite the query so its site
friendly.