Tips for combining PHP-generated markup with Big Medium.
Can I use PHP code in my templates?
Not directly. Big Medium generates .shtml pages, which are not parsed for PHP; any PHP code in those pages will not be processed.
You can, however, add server-side include tags to your templates to bring in PHP-generated markup from external files. You do this by moving each chunk of PHP code in your page into its own external PHP file, and then replacing that chunk of code with a SSI tag in the template. Here's how to do it.
Repeat these steps for every chunk of php code in your template:
Copy and paste the code into an external file with its own unique name. For example, we'll call it: include.php
Save the file to your webserver. For example, let's assume that your domain is example.com and you've saved this file here: www.example.com/php/include.php
In your template, replace this chunk of PHP code with a SSI include tag like so:
<!--#include virtual="/php/include.php" -->
The end result is that your template will include the results of each snippet of code from all of these external files.