The reason WordPress uses PHP is that PHP makes it possible to interact with the database and to fetch data. So WordPress uses PHP to fetch things from the database and then to output them as HTML. The various PHP tags and functions provided by WordPress are what enable this to happen on your page .