creating function for breadcrumb navigation and adding it to posts and pages