Skip to content

Instantly share code, notes, and snippets.

View laukstein's full-sized avatar
🏠
Working from home

Binyamin Laukstein laukstein

🏠
Working from home
View GitHub Profile
<?php
$menu_name = 'main_nav';
$locations = get_nav_menu_locations();
$menu = wp_get_nav_menu_object( $locations[ $menu_name ] );
$menuitems = wp_get_nav_menu_items( $menu->term_id, array( 'order' => 'DESC' ) );
?>
<nav>
<ul class="main-nav">
<?php
@laukstein
laukstein / LICENSE.txt
Created November 29, 2011 06:15 — forked from 140bytes/LICENSE.txt
Ajax SEO snippet in 140 bytes
GPL and MIT LICENSE
/**
* http://www.20thingsilearned.com/js/twentythings.min.js
* The history class is in charge of the browser
* history and URL's.
*/
TT.history = {};
/** */
TT.history.TABLE_OF_CONTENTS = 'table-of-things';
TT.history.HOME = 'home';