I've been wondering what would be the best option:
- Creating a wordpress theme
- Using wordpress only as backend and using a MVC framework for the rest
I've never worked with wordpress themes before, but I've been taking a look at the basic theme to try to understand how it works and how it can be customized, and... Wow! Wordpress insiders look really ugly!
HTML mixed with PHP everywhere, functions printing HTML markup, global variables which seem to appear from nowhere...
I also noticed that just to change the appearance of a category section I would need to modify multiple files being called by different PHP functions or even the calls to the functions, such as wp_link_pages
, the_content
, edit_post_link
...
After all this mess, I'm wondering what is the real advantage of using a wordpress theme rather than calling some wordpress functions (ideally which don't print info but just return data) inside a MVC framework, where things will be much more organized.