Skip to content

Instantly share code, notes, and snippets.

@anthonysbrown
Created April 29, 2019 15:30
Show Gist options
  • Save anthonysbrown/d3facef06e7d5fe34ee31101a948cc49 to your computer and use it in GitHub Desktop.
Save anthonysbrown/d3facef06e7d5fe34ee31101a948cc49 to your computer and use it in GitHub Desktop.
template.php
<?php
#service date
if($burial_date != ''){
echo '<p class="wpfh-service-line"><strong>'.get_option('wpfh_burial_date_text',__("Burial Date","sp-wpfh")).'</strong> ' .$burial_date . '</p>';
}
#service lines
if(wpfh_feature_disabled('Obituary: Service Lines') != true){
$services_information =array();
if(isset($_GET['id'])){
$services_information = wpfh_get_meta(array(
'meta_name' => 'service_line',
'oid' => @$_GET['id']
));
if(is_array($services_information)){
if(count($services_information) > 0){
foreach($services_information as $key=>$service){
?>
<p class="wpfh-service-line"><strong><?php echo $service['name']; ?> </strong><span><?php echo $service['value']; ?></span></p>
<?php
}
}
}
}
}
#end service lines
echo apply_filters('wpfp_main_after_service_date','',$r);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment