Tag: query_vars

  • Content Without Posts

    I’m going to demonstrate how to have a URL with content in WordPress that’s neither a post, page, or listing. Its contents can be anything you’d like! To do this we need to take the following steps: A Helper Class I’ve encompassed all these steps into a base class, which you can inherit from: To…

  • Getting From URL to Template

    So you load a page on a WordPress site. How did it know to load the page template? How did it know it was a page and not a category listing? Is it hardcoded somewhere? To begin with lets list out what happens, then we’ll explain each step in basic terms: Before I continue, the…