Passer la navigation

[Résolu] Using a Repeating Field on an Archive Template

This support ticket is created Il y a 3 years, 8 months. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par joelW-3 Il y a 3 years, 8 months.

Assisté par: Minesh.

Auteur
Publications
#2466799

Hi, I'm trying to create a FAQ using Repeating Fields on a Taxonomy Archives Page. Is this possible? Ideally, I would like different FAQ items to display for each different Taxonomy Term. An example of the page I'm trying to add an FAQ to would be: lien caché

The "course-categories" value is the taxonomy term. Thanks in advance.

#2467035

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Here is a sandbox site and you can auto-login to it using the following link:
- lien caché

I've created the "Student" post type and it has taxonomy assigned "Student Types". "Student Types" taxonomy has "faq-items" single field which is set to be repeating. If you try to add the new term to taxonomy "Student Types" it will offer you way to add multiple faq-items to it.
=> lien caché

I already added terms "studet-type-a" and "student-type-b" both has (multiple) three faq-items assigned as you can see with the above link.

Can you please tell me how exactly you want to display the Faq-items on the student archive. Here is the tax student-types archive view:
- lien caché

#2467427

Thank you. This looks like what I was hoping to do. I wanted to display the FAQ items in, possibly, something like an accordion control?

Also - is it possible for the fields to hold HTML since I will want to differentiate the Questions from the Answers with some type of formatting.

#2467559

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Thank you. This looks like what I was hoping to do. I wanted to display the FAQ items in, possibly, something like an accordion control?
==>
To display the custom term field, you will have to create a taxonomy view in legacy mode and add the term custom fields you want to display within the taxonomy view's loop editor:
- https://toolset.com/documentation/displaying-wordpress-term-fields/

Also - is it possible for the fields to hold HTML since I will want to differentiate the Questions from the Answers with some type of formatting.
==>
Yes - if you adding content using admin, you should be able to add some HTML.

#2469533

Thanks, Minesh! I will try to implement this and see if I'm successful.