Posting single ID from Region

  • Afternoon,


    I'm looking for a bit of help regarding the below if possible?


    I have a simple region setup called Centre Info.


    Inside the region I have a number of ID's such as name, address, postcode, email etc.


    I have all of this information displayed on the left of the page in a div using <?php perch_content('Centre Info'); ?> which is fine.


    However, elsewhere on the page I want to display only the postcode.


    I have tried <?php perch_content_custom('Centre Info', [postcode]); ?> but this is bringing up the below error.


    Warning: Use of undefined constant postcode - assumed 'postcode' (this will throw an Error in a future version of PHP) in ...


    Is there something else I need to do here?


    Thanks in advance.

  • You cannot use the postcode field in that way, You need to define options for perch_content_custom as described here: https://docs.grabaperch.com/fu…ent/perch-content-custom/


    In particular, you need to create a new template (it might be a simple piece of HTML with that single field) that displays only the postcode and use that template in the options for perch_content_custom.