Skip Navigation

[Resolved] Need support custom tyaxonomies and fields

This support ticket is created 5 years, 9 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Author
Posts
#1254083

Tell us what you are trying to do? I want to show tittle custom taxonomy in front end

Is there any documentation that you are following? no

Is there a similar example that we can see? no

What is the link to your site?
hidden link

#1254133

Hi Juan,

This is the new support ticket and I've set your next reply as private, so that you can share the admin access details, securely.

regards,
Waqar

#1256909

Hi Juan,

Thanks for writing back and for sharing the admin access.

I noticed that the "Numero de stand" and "País" fields are added through "Datos de la empresa" custom field group:
( hidden link )

But there are no new fields added for showing their titles, like "Numero de stand Title" and "País Title".

As discussed in our chat, please add these two new custom fields ( ref: https://toolset.com/documentation/user-guides/using-custom-fields/#how-to-add-custom-fields-to-content ) and fill in the value for them in all "Empresas" posts.

After that, you'll be able to replace manually entered titles:


<p class="stand">Nº Stand: [types field="numero-de-stand"][/types]</p>

<p class= "pais">País: [types field="pais"][/types]</p>

With the dynamic titles:


<p class="stand">[types field="numero-de-stand-title"][/types]: [types field="numero-de-stand"][/types]</p>

<p class= "pais">[types field="pais-title"][/types]: [types field="pais"][/types]</p>

Note: Please replace "numero-de-stand-title" and "pais-title", with the actual slugs of the newly added fields.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1259211
Captura de pantalla 2019-06-05 a las 10.14.37.png
Captura de pantalla 2019-06-05 a las 10.14.29.png
Captura de pantalla 2019-06-05 a las 10.13.32.png
Captura de pantalla 2019-06-05 a las 10.13.10.png
Captura de pantalla 2019-06-05 a las 10.13.01.png

Hi I created a new custom field for nº stand as you had said to me, but still not working. i don´t know what I´m doing wrong..
please help

#1260265

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

Waqar is off, I will look at this for you, but I'm running out of time today so it will have to be in the morning. Apologies for the delay.

#1260987

Ok! I will wait for your message.

Thanks

#1260995

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2019-06-06 at 10.44.37.png

When I visit the page Toolset > Campos personalizados I can see that you have set up several field groups "Grupo de campo para Empresas", most of which are empty (screenshot).

The first thing you should do is organise this section, removing field groups that are not required and putting the individual fields inside the field groups which make most sense.

Regarding the issue itself, it seems like you want to be able to add labels ("etiquetas") when you output custom fields which are "dynamic" rather than static text.

Before recommending a solution I would first ask why.

I see this is a multilingual site, and if the reason you want to make the field labels "dynamic" is so that you can translate them, then you don't need to add another custom field to store the label, we have a solution for that already.

You can wrap text in a "wpml-string" shortcode and then that text will be available to translate in the WPML String Translation module.

See https://toolset.com/documentation/user-guides/views-shortcodes/#wpml-string

So you would use it like:

<p class="stand">[wpml-string]No. Stand[/wpml-string]: [types field='numero-de-stand'][/types]</p>

I'm guessing that this is what you actually need to do, but if you do need to create a custom field for the labels then let me know and add a demonstration.

#1261099

Hi I deleted de fields wihch where empty and I´m trying to organise the individual fields inside the field groups, but I´m experimenting troubles with the slugs, because they already exist, they should be somewhere..... And I cannot put the same that i had before.....

¿?¿? any idea?

#1261123

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

On the page Toolset > Campos personalizados use the button "Control de campo de entrada" which will take you to a page listing all custom fields that have entries in the database or are defined already in Types and you can delete unwanted fields from there so that you can again use the same slug as previously.

#1261889
Captura de pantalla 2019-06-07 a las 9.38.45.png

Hi Nigel, I´m a bit in a rush with this... I did what you said but still not working.. I add every single custom type in his own field group see attached file then I use the shortcut in a way you showed to me, but still not showing nothing.

The reason that I want that is because I want to translate everything to English.... I´m using polylang plugin. I´m still trying to find the way to translate that with this plugin..

Any idea?

#1262137

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Well, the wpml-string shortcode is intended for use with WPML, it's not going to work with Polylang.

You could achieve the same result if you add some code to register the strings that you want to be able to translate with Polylang, and then create your own custom shortcode to output the translated strings.

So you would be using Polylang string translation: hidden link

You would register the strings for the labels using pll_register_string() (hidden link).

You would add a custom shortcode (https://developer.wordpress.org/plugins/shortcodes/) that gets the translated string using the Polylang function pll__ (hidden link) and returns that.

You could then use your custom shortcode in place of the wpml-string shortcode as described above.

#1262189

Hi Nigel, thanks for your reply. I aprecciated your help but I´m not too family with what you are talking about. As far I know if a could show titles from custom fields, I could translate the strings from polylang to english, it would be easier for me. I need to show the title somehow ...

#1262253

I was thinking I could also make a new custom type "companies" and add a custon layout in english.. but whn I make a new custom type wordpress doens´t show feature image......

#1262263

Perdona he visto que puedes dar servicio en español.. Quizás aí te entienda mejor..

Gracias por tu ayuda, pero como te comento en el mensaje anterior no estoy muy familiarizado con la solución que preopones..

Quizás podría crear un nuevo custom type llamado companie y ahi cargar todas la empresas de nuevo y insertar sus custom fields en inglés, y asignarle una plantilla tb en inglés y hacer que se muestre mediante el widget en las páginas que yo quiero... pero el problema viene ahora que intento crear el nuevo custom type companie y no me aparece la caja featured image. He intentado mediante opciones de pantalla en el menu arriba a la derecha pero no aparece.....

Perdona por el Caos, pero me esta costando bastante entender el plugin y todos su funciones..

#1262333

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2019-06-07 at 13.01.19.png

Para poder ver la caja de "featured image" tendrás que ir a Toolset > Tipos de Entradas y editar el tipo pertinente y verás la opción de habilitar imagenes destacadas para este tipo de entrada (pantallazo).