}
            }
            if ($menu_items[$count + 1]->menu_item_parent != $parent_id) {
                $menu_list .= '</li>' . "\n";
                $submenu = false;
            }
            $count++;
        }
        $menu_list .= '</ul>' . "\n";
        $menu_list .= '</nav>' . "\n";
    } else {
        $menu_list = '<!-- no menu defined in location "' . $theme_location . '" -->';
    }
    echo $menu_list;
}
clean_custom_menu("primary");
?>
 


<?php 
echo "<br>";
echo "<br>";
echo "<br>";
echo "<br>";
?>

<?php 
$args = array('posts_per_page' => 20, 'offset' => 0, 'category' => '', 'category_name' => 'latest-news', 'orderby' => 'date', 'order' => 'DESC', 'include' => '', 'exclude' => '', 'meta_key' => '', 'meta_value' => '', 'post_type' => 'post', 'post_mime_type' => '', 'post_parent' => '', 'author' => '', 'post_status' => 'publish', 'suppress_filters' => true);
$posts = get_posts($args);
echo "<br>";
Exemple #2
0
                }
            }
            if ($menu_items[$count + 1]->menu_item_parent != $parent_id) {
                $menu_list .= '</li>' . "\n";
                $submenu = false;
            }
            $count++;
        }
        $menu_list .= '</ul>' . "\n";
        $menu_list .= '</nav>' . "\n";
    } else {
        $menu_list = '<!-- no menu defined in location "' . $theme_location . '" -->';
    }
    echo $menu_list;
}
clean_custom_menu("primary", $mypath);
?>
<!-- 

              <nav class="mainmenu">
                <ul class="hmenu">
                    <li class="hvoice"><a href="<?php 
echo $mypath;
?>
"><span>Home</span></a></li>
                    <li class="hvoice"><a href="#"><span>Why Pioneer</span></a>
                        <ul>
                        <div class="arrow"></div>
                        <li class="sub"><a href="<?php 
echo $mypath;
?>