Skip Navigation

[Closed] API output – custom field

This support ticket is created 2 years, 10 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Shane 2 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#2266411

Hi

On the front end of the site in posts I have a field called "offer-link" (or wpcf-offer-link).

After this I insert tracking codes automatically I made a shortcode [url-tracking], in the view template I simply place his after the toolset field offer-link.

This does the job perfectly.

However the API output how can I do similar? Is there a way I can hook on to this field to output my shortcode PHP function after the URL?

Thanks.

#2266491

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Matthew,

Thank you for getting in touch.

However the API output how can I do similar? Is there a way I can hook on to this field to output my shortcode PHP function after the URL?

Given that it works with the shortcode output on the frontend page, I see no reason why it should work when you're using the API.

Is it that you're adding the field to your PHP template using the types_render_field() function ?

Please let me know .

Thanks,
Shane

The topic ‘[Closed] API output – custom field’ is closed to new replies.