Skip to content

Latest commit

 

History

History
executable file
·
31 lines (19 loc) · 527 Bytes

get-unformatted-field-values.md

File metadata and controls

executable file
·
31 lines (19 loc) · 527 Bytes

title: Get unformatted field values


version: 1.0.1


authors: SiNNuT, marcus


tags: fields, unformatted


problem: You need to return a field value unformatted in order to format it individually later.


solution: You can access the naked field value with the getUnformatted method like so:

<?php echo date("F j, Y, g:i a", $page->getUnformatted("a_date_field")); ?>

resources: