Skip Navigation

[Resolved] Getting post meta through post id in toolset

This support ticket is created 7 years, 1 month 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Noman 7 years, 1 month ago.

Assisted by: Noman.

Author
Posts
#578490

How can i get post meta fields through tool set if I have post id. ?
I had already implement ed through coding but I want to implement through tool set only.

#578506

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Christopher,

Thank you for contacting Toolset support. If your field name is “address” and you want to get specific post id value i.e 745 then you can use shortcode in this way.

1. If you want to use in page/post editor here is shortcode:

	[types field="address" id="745" arg1="val1" arg2="val2"]

2. You can use above shortcode in php files in this way:

	<?php echo(do_shortcode('[types field="address" id="745" arg1="val1" arg2="val2"]')); ?>

Doc for Types Fields API: https://toolset.com/documentation/customizing-sites-using-php/functions/

Thank you