WordPress.org

Ready to get started?Download WordPress

Forums

Tag page lists with proper classes like first, current-prev, current-next, last (2 posts)

  1. michuk
    Member
    Posted 7 years ago #

    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?

  2. michuk
    Member
    Posted 7 years ago #

    I guess it is too technical for this forum.. I'll try in the "Requests and Feedback" then.

Topic Closed

This topic has been closed to new replies.

About this Topic