An introduction to the WordPress application frontend
WordPress powers its frontend with a concept called themes, which consists of a set of predefined template files to match the structure of the default website layouts. In contrast to web applications, a WordPress theme works in a unique way. In Chapter 1, WordPress as a Web Application Framework, we had a brief introduction to the role of a WordPress theme and its most common layout. Preparing a theme for web applications can be one of the more complicated tasks that is not discussed widely in the WordPress development community. Usually, web applications are associated with unique templates, which are entirely different from the default page-based nature of websites.
A basic file structure of the WordPress theme
As a WordPress developer, you should have a fairly good idea about the default file structure of WordPress themes. Let's briefly introduce the default files before identifying their usage in web applications. Think about a typical...