Category: PHP

Blog entries about PHP. My online language of choice for many years. Being able to pass along the DOs and DON’Ts along with coding samples, hints, tricks will hopefully help someone.

WordPress Cats, RegEx and Parent/Child Relationships

WordPress Categories, RegEx and the Parent/Child Relationship

Categories: Blog, Development, Personal, PHP, WordPress
Tags: , , , , , , ,

I couldn’t seem to find a WordPress function that would return an array of all categories in their parent/child relationship order – so I went ahead and coded a way. If you know of a better way, please share. If not, enjoy the code.

No Comments

Continue Reading...