02/12/2018 at 9:41 am
#451300
Keymaster
@ Gregory
Looking at the code, nothing jumps out to me as fatally wrong… My suggestion, revert back to the original code for the template and add pieces of you code back in until you can isolate the error.
For example, start with adding:
echo "<h4>Ordination Info</h4>";
After you verify everything still works, then add:
$datepicker = $entry->getMeta(
array(
'key' => 'deacon_ordo_date',
'single' => TRUE,
)
);
$text = $entry->getMeta(
array(
'key' => 'deacon_ordain_bishop',
'single' => TRUE,
)
);
Again, verify that everything still works, then add:
if ( ! empty( $datepicker ) && ! empty( $text ) ) {
$dateb = cnDate::createFromFormat( 'm/d/Y', $datepicker )->format( 'j F Y' );
echo 'Deacon Ordination: ' . $dateb . ' by ' . $text . '';
}
Rinse, wash, repeat… Hope this helps, let me know.
