Post Navigation

I have a widget area on my posts category pages and am wondering if there is a way to dynamically add a link to the first post as well as the current post of the category. I think the first post can be hardcoded since it will never change, but the current one will. I … Read more

specify meta_key / meta_value condition for prev_post_link and next_post_link

I’ve got a custom post type (CPT) called event. Every event has got an associated meta_key called event_date. I want to make sure that events with empty event_date won’t appear in my list of all events and in the prev/next event navigation when viewing a single event. I also want to order events by the … Read more

Same Navigation Drawer in different Activities

I made a working navigation drawer like it’s shown in the tutorial on the developer.android.com website. But now, I want to use one Navigation Drawer, i created in the NavigationDrawer.class for multiple Activities in my Application. My question is, if anyone here can make a little Tutorial, which explains, how to use one Navigation drawer … Read more

Benefits of using Nav Walker?

Are there any benefits to using a nav walker class over iterating through wp_get_nav_menu_items()? Nav walkers seem very clunky to me and iterating over an array feels easier and more re-usable but it then bypasses the internal menu filters of wordpress that I don’t know much about. Will this make my theme incompatible with some … Read more

`start_el` depth argument in custom nav walker always evaluates to zero

I have a custom nav walker I’m trying to use to output only the first level of a menu: <?php wp_nav_menu( array( ‘theme_location’ => ‘secondary-menu’, ‘depth’ => 1, ‘walker’ => new SecondaryNavWalker ) ); ?> However, all levels of the navigation are outputted regardless. I’ve tried doing a check against the arg in start_el, but … Read more