As I mentioned in my previous post, there are some old deprecated things here, I’ll update later.
You now know how to create and display variables with PHP. Here is a review of everything I’ve used so far.
How to break in and out of PHP:
-
<?php
-
//PHP Code Goes Here
-
?>
How to set a variable:
-
<?php
-
$variable = "Variable Value";
-
?>
How to quickly display a variable:
-
<?=$variable?>
Now we are going to use “if,” “else,” and “echo” to set default values for the title, and meta tags. There won’t be a step by step process for this one, I’m just gonna display the sample code for header.php. Everything else is done almost exactly the same as Part 2. Read the rest of this entry »