Extend the body_class function
Introduced in WordPress 2.7 the body_class() function is extremely useful to style a particular post, page or subpage. But when we look at the subsubpages, the parent page ID is that of it’s nearest parent and not the ID of it’s top level parent. Let’s solve this issue.
-
Your Name
No comments yet, be the first one.

Post your opinion: