
When building themes, you occasionally need to be in a situation where you link to something within your theme that is a page or a post within your site. Ideally you want to avoid it if you can, using WordPress’ ability to position things correctly using menus, or widgets, or something within the database. However…