Add function to detect if the current page is a “view post” page.