Tag page lists with proper classes like first, current-prev, current-next, last
I need to have custom classes for page list elements. Currently only the current element has a special class (current_page_item). I need more classes to cover: first element (first), the element before the current element (current-prev), the element exactly after the current element on the list (current-next) and the last element on the list (last).
With WP 1.5<x<2.0 I used to hack around wp_list_pages and _page_level_out functions in template-functions-post.php to get such functionality. Now in WP>2 there has been a “Walker” class introduced. I’m wondering if it was made any easier to implement such feature? I wuld not like to spend another day implementing it for WP 2 just to see that it was as easy as calling some additional parameter or something like this.
Anyone has a clue?
- The topic ‘Tag page lists with proper classes like first, current-prev, current-next, last’ is closed to new replies.