Highlighting current item of custom post types’ sub pages, listed by wp_list_pages
The problem with this code is that the query is being altered and current_page_item is being lost. This is the part causing problems. $post = get_post( $getid ); setup_postdata( $post ); If you comment out those two lines you’ll see that current_page_item appears. There are also some secondary problems with this code that have no … Read more