This example shows the basics of how data is retrieved from a model and passed to the view via the controller, where is is displayed in the WordPress Loop before the post content.
Model
Filename
mvc/models/mvc-front-sample.class.php
Code
Copy to Clipboard
View
Filename
templates/template-sample.php
Code
Copy to Clipboard
Controller
Filename
mvc/control/templates/template-sample.php
Code
Copy to Clipboard