As we state earlier, WordPress is based in PHP (a scripting language for
creating Web pages) and uses PHP commands to pull information from the
MySQL database. Every tag begins with the function to start PHP and ends
with a function to stop it. In the middle of those two commands lives the
request to the database that tells WordPress to grab the data and display it.
A typical template tag, or function, looks like this:
<?php get_info(); ?>
This example tells WordPress to do three things:
✦ Start PHP: <?php
✦ Use PHP to get information from the MySQL database and deliver it to
your blog: get_info();
✦ Stop PHP: ?>
0 comments:
Post a Comment