Building the forum application home page
So far, we have learned the theoretical aspects of creating templates inside WordPress themes. Now, it's time to put them into practice by creating the home page for the forum application. In this section, we will talk about the importance of widget-based layouts for web applications while building the home page. Our home page consists of two major parts:
- Forums list of the application
- Various widgets for forum application data
Let's implement these two parts starting with the forums list.
Building the forum list using shortcode
The Forums
list
on the home page is the main entry point to our application where we list all the available forums with the link to the individual forum page. We can implement the forum list using a custom template, shortcode, or a widget. In this scenario, we are going to use a shortcode to develop the forums list since it can be reused in many other parts of the application. Let's start by updating the constructor of the WPWAF_Model_Forum...