Skip Navigation

[Resolved] Is it possible to rewrite tag with combination of custom fields

This support ticket is created 6 years, 8 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: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#899912

Tell us what you are trying to do?

I want to change <title> and meta description tags to automatically generate more SEO friendly info for custom post types.
Is it possible to rewrite these tags?

E.g. currently it like <title>Post Title</title> but I want to make it <title>Custom Field 1 + string + Custom Field 2</title>

#900395

Hello,

There isn't such a built-in feature within Toolset, but you can try with WordPress built-in filter hook "the_title"
https://developer.wordpress.org/reference/hooks/the_title/

Change the post title to what you want.

#900896

Ok, thanks, it could works... could you guide me to how use custom fields in php? I try to find it by myself in your docs, but not actually successful. Usually, I use shortcodes...

#901454

Here is the document for rendering custom fields created with Types plugin, you can try with Types function types_render_field() in your PHP codes:
https://toolset.com/documentation/customizing-sites-using-php/functions/