QND: Style active page

Published on 13 Oct 2016 , edited on 22 Mar 2019

Sometimes you just need something quick’n’dirty, like this time I had to add an active class to totally unrelated items on a page, based on the page title.

Read more ...

WordPress check if child/parent

Published on 13 Oct 2016

I recently came across a situation where I needed to show a sidebar on a page template, if the page has childeren. Consequently I also had to check if the current page was such a child, and if so show the same listing from the parent (which are ‘sibling’ pages at this point). To do […]

Read more ...

Wordpress

All categories

All tags

All posts