Added support to wp-paginate
Fixed extended classes