Hierarchical Custom Posts – Highlighting Current Post in Sub-Menu

I have created a hierarchical custom post type called events and have used wp_list_pages to list the sub-posts for each event post (See below). This navigation works great, but I cannot figure out how to highlight the menu items based on the post being viewed. I normally use .current_menu_item, but this class is not generated … Read more

wp_list_pages sort order is different for different languages [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 9 years … Read more

Manipulate Output of wp_list_something: select menu instead of li’s

I’m working on a responsive webdesign where my navigation should swap into a select-menu when resizing the window in smaller sizes. Is it somehow possible to add another param to functions like wp_list_categories() or wp_list_pages() so that it outputs <option>item</option> instead of <li>item</li>? So what I wanna do is use wp_list_pages() and wp_list_categories() to ouput … Read more

Handling complex multi-level architecture / menu for large site

I am trying to get feedback and ideas for solving an information architecture / content management problem using wordpress. I have a large site ( 1,000+ pages, hundreds of posts ) made up of sections. Each section needs its own secondary navigation menu that contains both pages and custom links. This is easily done, but … Read more

inserting custom li class to wp_list_pages

I currently have a parent page with some child pages. I am able to list these child pages but would like to insert a custom li class. The wp_list_pages outputs <li class=”page-item number”></li>. I would like for it to output <li class=”hvr-underline”></li>. Here is the code I have so far: $children = wp_list_pages( ‘title_li=&child_of=”.$post->ID.”&echo=0’ ); … Read more