This support ticket is created 5 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Hi, i would like to use an elementor template to show my data.
I created one and it works in the view output with custom fields. But if i use repeating group fields custom fields it doesn't work.
Is there any solution or workaround about this issue ?
Imagine you have a Project post type, and it has a Tasks repeatable field group (with fields such as status, assignee, due date etc.).
To display the task fields of some project, you would need to create a View to query the Tasks repeatable field group with a Query Filter for the parent project (as described in that documentation).
If you are using Elementor templates and you create a template to display single Projects, you would insert the View you just made to display the tasks and their fields.
as you told:
"If you are using Elementor templates and you create a template to display single Projects, you would insert the View you just made to display the tasks and their fields."
I create an elementor template and inserted the shortcode in the view loop it only works with custom fields of a certain custom type but not with repeating group fields
I already have a test site with a Project post type and "Team Members" repeatable field group with fields for email and phone, so I used that to test this with an Elementor template, and it worked as expected (screenshot).
I guess there may be something you have not done right, but I'll need to look at your site to know what.
Let me mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site, even though I don't intend to make any changes.
What is the main post type you have created a template for, and what is the repeatable field group you made a View to display?
Let me make sure I understand what you are trying to do.
You have a Location custom post type.
This post type has a repeatable field group assigned, "Formule", which includes a number of fields such as "Descrizione Formula" and "Cosa Include la Formula".
So the first step to displaying these repeatable field group fields when looking at a location is to create a View where the content selection is the "Formule" repeatable field group. I can see there is already such a View, "Cerca Formula".
But! It looks like you didn't finish creating the View. because the Loop section is completely empty, so nothing will be output. This is where you should be inserting the fields from the Formule group such as Cosa Include la Formula to output them.
When you have done that, the next step is to create/edit a template for Location posts, and insert the View where you want the list of repeatable fields to appear.
You are using Elementor templates, which means creating a single template for Location posts. You already have done this ("Scheda Location"), but I can't see it because it is locked, you are currently editing it.
All you need to do is add a Views widget to that template where you insert the View you created above.
|_Scheda Location (Elementor Template)
|___ A View that output the Formula(s)
|______ Formula Template (Elementor Template)
I Only can insert types code in a wysiwyg elementor widget and this type of widget makes output very annoying because it shows the output preformatted with paragraphs. I would insert just the custom code for example like a html code but it doesn't work
Your View "Cerca Formula" still doesn't output anything, the Loop Editor is empty, so nothing will appear.
To demonstrate, I have simply updated this View so that it outputs the post title, i.e. the title of the Formule repeatable field group.
I then edited the Scheda Location Elementor template, and at the very end of the template I inserted the Cerca Formule View using a View widget.
Now if you visit a location on the front end you will see at the bottom of the page the Formule listed.
That is how you display repeatable field groups.
It is not intended that you design the output of a View with Elementor.
In testing I found that I could. I created an Elementor template which included certain modules that specified Types fields for the dynamic content and I also included Views shortcodes for other fields in a text module (you need to manually add the shortcodes, because we cannot modify the Elementor UI to be able to include our Fields and Views button, for example).
Elementor templates can be displayed using the elementor-template shortcode, so I inserted that into the Loop section of a View, then displayed the View on a page, and found it worked.
However, this isn't the intended way of using Elementor together with Toolset, and there could be unexpected side effects or things that do not work as expected.
My needs is to build the layout in elementor, this is the reason i bought it from toolset advice because of integration beetween the two plugins.
At this point, if it is not so integrated i'm forced to build an integration myself programming it to use the layout of elementor and the logic of types and views.
As you suggest i should build html avoiding use elementor builder?
I'm sorry, but looking over this thread again I don't understand what the problem is, let me try once more to explain how it works.
Your question asked about displaying fields from repeatable field groups, using Elementor templates.
1. You create an Elementor template to display your custom posts
2. You create a View whose content selection is the repeatable field group, and which outputs the custom fields that belong to that group. The prescribed method would be to output the fields directly within the Loop Editor, or in a linked content template.
3. You edit the template created in 1. and insert a View widget to display the View created in 2. wherever you want the repeatable field groups to appear.
That is the intended way of outputting repeatable field groups for posts whose output is designed with Elementor.
I also reported that in my own testing (but not recommended), I found that I could take the shortcodes for the fields output in the View from 2. above and add them to an Elementor section template, and insert the elementor shortcode for that section template in the Loop Editor section of the View and that also worked.
If you find that something doesn't work can you please give an explicit explanation of what exactly it is you are doing that does not work?