Skip Navigation

[Resolved] different style label and content of custom field

This support ticket is created 6 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.

This topic contains 2 replies, has 1 voice.

Last updated by ritaV 6 years, 10 months ago.

Author
Posts
#601864

Hello! I'm trying to create a multilingual site with wpml, theme divi and custom post type with toolset.
I would like to customize the appearance in frontend of my custom post type. I created "films" as custom post type and some value as custom fields of them: title, year and other... i try to use the shortcode with
"show_name='true'" for display the label.

I translate all label in wpml> String Translation and i search "plugin types" and traslate all my custom fields label.

If i use the sortcode

 [types field='anno' show_name='true'][/types] 

i can see the label and the value of this label in my language (italian). And... if i change language and set english i can see the label and the value that i have translated. it's fantastic!
But... how can i have different style of label and his value? I try to edit a custom "model of content" in toolset> model of content. and i have try to insert:

 <strong>Anno:</strong> [types field='anno'][/types] 

instead

 [types field='anno' show_name='true'][/types] 

but with this solution i don't have the traduction of the label!

I try to search a way to traslate the label that i have insert in this second way but I did not succeed.

You can see my custom post type with custom field here: hidden link

I would like to have a multilenguage site and custom posts with label in strong font and inline the value of this label.

Can you help me?

Thank you so much

(before using toolset plugin i try to use another plugin for my custom post type but i have a compatibility issue... you can read this: https://wpml.org/forums/topic/duplicate-custom-post-type-after-traduction/)

#601869

i try to add:

[wpml-string] <strong>Anno:</strong> [/wpml-string] [types field='anno'][/types]

and then i can translate each strings in wpml. It's run for custom label!
But now how can i display label of custom tag with link?

#601873

Now all run! I find the options in views! 🙂