Skip Navigation

[Resolved] Custom fields and term metas for SEOPress

This support ticket is created 5 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 5 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#1186021

Hi guys,

I'm working with the SEOPress team to see if they can more tightly integrate with Toolset. One of the things is to see how they can leverage Toolset's API to pull back custom fields from bi-directionally linked (relationship) CPTs, as well as how we can pull back TermMetas from custom taxonomies.

hidden link

Are there specific functions that you can point their team to, which they can quickly get up to speed and use to get those fields back?

If so, that would really help speed up their development/integration. Thanks so much.

#1186088

Sure, here are links to the relevant APIs. Examples are included in the links, or I can provide something specific if you need more information.

- Get related posts given a post ID, a relationship slug, and role specifications:
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_get_related_posts

- Get custom field data given a term ID:
https://toolset.com/documentation/customizing-sites-using-php/functions/
Click "+More" below any field type to see examples with termmeta fields and PHP.