Skip Navigation

[Resolved] to include into a template other information from the group field like tags

This support ticket is created 4 years, 5 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: Africa/Casablanca (GMT+01:00)

This topic contains 3 replies, has 3 voices.

Last updated by Jamal 4 years, 4 months ago.

Assisted by: Jamal.

Author
Posts
#2002335
2021-03-26.png

Tell us what you are trying to do?

I am trying to add some qualifying terms into my dynamic template.
Things like what facilities a B&B has, or local activities near the hotel, or if different aspects of the service are good etc...

In the verification group blocks, in the field group form for "Alojamientos", I created a lot of "qualifying terms" but when I try to add them to the dynamic template all I get are numbers, like a one for each term... I don't know how to add only the ones I choose in the post page for a specific hotel, nor how to add the text term that should go with it... which is also very important.

For example: I created the taxonomy "Facilities", too... there you can find things a hotel offers like: Bar, Parking, Breakfast, Hairdryer etc....

I want to be able to pick up the ones that apply to each individual accommodation page (from the template I already created) and download them accordingly in the dynamic template, so the text field for each terms that is applicable for that specific hotel will show in each page accordingly, in the dynamic way.

and then also, how can I add an icon next to each individual term? Can they be downloaded together from one same place?

There are too many words and too much information. My website translated the plugin to Spanish, and now I doubt all the time between terms in English and Spanish, I am kind of lost with the translation my own website did.. so could you please help with a simple tutorial?

I am Spanish speaking, 55 years old, and although I am trying to follow documentation, it doesn't help me very much... I personally would need a clear tutorial, step by step instructions that suit my specific travel pages. I tried to find similar situations and searched some of other people's requests and they are advanced, they know how to program... I didn't understand what they were doing... It didn't work for me.

I've been struggling for days with this, so if you can help I will very much appreciate it. I've come this far on my own, but now I am stuck... Please help!

Thank you in advance for any help you can provide.

Kind regards,

Beatriz

Is there any documentation that you are following? I am in the first chapters, but I got stuck.

I'm sending a screenshot. In the image you will see that all that uploads is a number " 1 ".

What is the link to your site? here is the link: hidden link

I'm just trying to start, so the website is very basic.

#2002681

Hello Beatriz and thank you for contacting the Toolset support. Please note that we also provide support in Spanish, Nigel is the Spanish-speaking supporter of the team. But, he does not work on weekends.

To better assist you I'll need to know what type of custom field you are using. Based on the 1, I am keen to think, it is a checkbox field, right?
I'll suggest that you use a conditional block or the conditional shortcode, to check if the field equals 1, and display the desired string. Check this tutorial about the conditional block https://toolset.com/course-lesson/using-toolset-conditional-block/
You can use conditional shortcodes inside the Fields&Text field using the "If" button hidden link

Regarding icons, I would suggest, regarding the custom fields, adding them inside your theme and conditionally displaying them too.
Regarding taxonomy terms, you can add an image field to the taxonomy, and put the icons there. Then, you can display them using a taxonomy view(which can't be created using blocks currently). It needs to be created using the legacy editor. Let me know if you need help with that.

#2012321

Agnes Bury
Supporter

Languages: English (English )

Timezone: Pacific/Midway (GMT-11:00)

I had a call with Beatriz and there are two strange things happening on her site:
1. we cannot see the checkboxes field called Facilidades on the post edit screen
2. when we tried to create a new one (called Facilities) it appeared but then we couldn't see it appearing in the Single Blocks field on the content template

#2012451

Regarding the 1st issue 1. we cannot see the checkboxes field called Facilidades on the post edit screen
The field has a condition display rule that was not matched for the existing post. Check this screenshot hidden link
After removing this condition display rule, the field "Felicidades" has appeared in the post edit screen.

Regarding the 2nd issue, some options of the checkbox fields are configured to display 1 when they are not selected, check this screenshot hidden link
It is, therefore, expected to have some "1" displayed by the single fields for the post where these options are not selected.
And also because some options were configured to display the value stored in the database instead of the option's label. Check this screenshot hidden link

I updated those fields, and it gives the "expected" display. Check this screenshot hidden link

During my testing, I noticed that the content template is not picked by Toolset when WooCommerce Multilingual is activated. So, I deactivated it. Maybe the issue arises because WPML, which is a requirement for WooCommerce multilingual, is not activated.

I hope this helps. Let me know if you have any questions.