Adding front-end code to Wordpress is pretty straightforward.
However, if we need to add code that runs on the server, for accessing the database for example things get more complicated.
This is because Wordpress has a very strict order of executing code when rendering pages.
One way of adding server code is through short code functions.
In this video we are going to write a short code that reads a list of employees from the databases and displays them in a table.
Source code:
https://vladsave.com/?p=175
Business website:
https://vladsave.com