/ Published in: PHP
In case you need to create your own listing of the last # of trailing months of Archived Wordpress Articles. This one is being used to pull the info onto a Magento page.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $totalmonths = 24; for ( $i=0; $i<$totalmonths; $i++ ) { $curyear = $curyear-1; } $output = " <?xml version=\"1.0\"> <blocks> <block title=\"Article Archive\"> <links> "; for ( $i=0; $i<$totalmonths; $i++ ) { "; } $output .= " </links> </block> </blocks>"; echo $output; ?>