I wanted to show the subcategories for a given category on it’s category page in the sidebar, but somehow the code for this wasn’t readily available. Basically you need to check whether there are any children, and if there are, list the categories with the current category as a parent or grandparent. The following code…
WordPress subpages going supplemental: the fix
I noticed that the subpages for my blog (you can find links to them in the footer of this page), were all going supplemental. This wasn’t really surprising as those subpages were displaying exactly the same as the frontpage: 5 full posts and a “next” and “previous” link to the next pages. This meant that…