Skip Navigation

[Resolved] adding postal-code in between address field output.

This thread is resolved. Here is a description of the problem and solution.

Problem:
adding postal-code in between address field output.

Solution:
This need to be done using a custom shortcode where you should pass/fetch the address field string, process the string and add the postal code field value in between and return your desired string.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/adding-postal-code-in-between-address-field-output/#post-919803

Relevant Documentation:

This support ticket is created 6 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Akhil 6 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#919591

Hi , i would like add a custom field in between the address field generated by toolset.

current default output format is : [unit-no, address,country ] exp : 10, south beach, australia,

i need it to be : [unit-no, address, "postal-code" country ] ex 10, south beach ,

Pls advice how i can achive this.

Have a great weekend . thank you.

#919745

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As I understand, you have address field which you are displaying using layouts but you want to display a custom field value in this case a postal code in between the address string? If Yes:

This need to be done using a custom shortcode where you should pass/fetch the address field string, process the string and add the postal code field value in between and return your desired string. If you do not know how to do it, I would be happy to help you further if you share access details and problem URL with me.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.

#919803

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - I've added following shortcode to your layout:

[display_postcode_with_title]

And I've added above shortcode to the following snippet:
=> hidden link

You can adjust the style as per your need and please kindly open a new question with your each new question. This will help other users searching on the forum.

#921567

thanks.