This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$stores_by_city = $wf->stores("orderby=title&order=ASC")->group_by("address.city"); | |
?> | |
<?php foreach ($stores_by_city as $city => $stores) : ?> | |
<h2><?= $city ?></h2> | |
<?php foreach ($stores as $store) : ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Assumes MasterPress has been used to setup a "download" file type with a "details" field set and | |
// "file" field within that set. | |
// Place this code in functions.php | |
function feed_item() { | |
global $wf; | |
echo $wf->the->details->file->enclosure(); |
NewerOlder