Skip Navigation

[Resolved] button block using an email custom field

This support ticket is created 3 years, 6 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
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by Peter 3 years, 6 months ago.

Assisted by: Jamal.

Author
Posts
#2066199

I have a similar issue with dynamically sourced URLs for buttons in content templates. I am trying to get an email address from a post's custom field. Can get it using single field block but not using the button block.

#2066551

Hello and thank you for contacting the Toolset support.

Indeed, the button block will only accept a URL field. It won't accept an Email field. You will need to do it using a workaround.

For example, use the Single field block and style it to appear similar to a button. (Background, border, radius, etc.)

Another workaround could be to use a "Fields&Text" block and build the button using HTML and shortcodes. Note that you can enqueue Twitter Bootstrap styles in Toolset Settings. You can use the "btn" classes from it:
hidden link

I filed this request as a new feature for Toolset Blocks, it will be evaluated by the development teams and hopefully, this may land in an upcoming release.

#2067049

Thanks - sorted!