WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need some help with making of one Walker Class. Now I’m having a menu with categories and in the dropdown there are some subcategories. The menu is something like that:

<div class="navigation">
  <div id="nav">
    wp_nav_menu( array(
    'theme_location' => 'header-cats',
    'menu_class' => 'nav',
    'menu_id' => 'cat-nav',
    'fallback_cb' => '' ) );

    <ul id="nav1">
     <?php wp_list_categories('title_li=&orderby=id&exclude=1,2,3'); ?>


I want to show the title of the last article with a small pic of it in that dropdown menu. Now I’m having only subcategories there. I want to be the subcategories AND the last title with + a thumbnail in every category. The menu should be like that:


For example there is something like my idea in www.cosmopolitan.co.uk There are showing the latest 2 articles from every category.

Can you help me with that? I’ll be so grateful! Thank you!

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.