Get 2 levels up from dirname( __FILE__)

Viewed 45562

How can I return the pathname from the current file, only 2 directories up?

So if I my current file URL is returning theme/includes/functions.php

How can I return "theme/"

Currently I am using

return dirname(__FILE__)
7 Answers
Related