A Portfolio and blog for Mustafa Kurtuldu

php

I’ve been searching for a way to remove the LIs and UL elements from a standard wordpress nav, wp_nav_menu, while keeping the classes from the LI and moving them to the A tags.

this is in italic and so is this

this is in bold and so is this

this is bold and italic and so is this

I’ve been searching for a way to remove the LIs and UL elements from a standard wordpress nav, wp_nav_menu, while keeping the classes from the LI and moving them …

DT-phpAccordian, a simple Accordion menu

With PHP, JSON and jQuery

Updates

This code was written a long time ago, and may no longer works on my serve.

Finally posted this code to create a simple accordian with PHP, JSON and jQuery based on a dev test I did for LoveFILM. You can get the code from github or simply look at it below. I also posted it to gist too so you can see each file example and a working demo aswell!.

First up the PHP

I added comments in the code to explain whats what. WE add the JSON parser …