Gordonmac Dot Com

Mostly a web development blog

Category: Tutorials

Little nuggets of information about Wordpress, CSS, SASS, PHP, SEO and Adobe products.

WordPress – Custom taxonomy navigation menus

Posted: June 22nd, 2012 | Tags: | Posted in: Tutorials, Wordpress

The product of today’s messing around with WordPress custom taxonomies in a bid to finish a client website – I needed to  generate a navigation based on categories stored in a custom taxonomy. Here’s the gist of it: function displayTaxonomyNav($taxonomy, $baseURL) { $output = NULL; $rangeNames = get_terms($taxonomy, ‘orderby=id&hide_empty=0’); foreach($rangeNames …
Read more…

CSS fading navigation

Posted: May 23rd, 2012 | Tags: | Posted in: CSS, Tutorials

I decided to do something a little different with the main navigation for this version of Gordonmac.com. You’ll notice that when you hover your mouse over a navigation button the rest of the buttons fade to highlight the one you’re pointing at. View Demo There is no jQuery …
Read more…