Skip Navigation

[Resolved] Repeatable fields grouping items

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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 1 voice.

Last updated by Stephen 2 days, 2 hours ago.

Assisted by: Minesh.

Author
Posts
#2808786
admin-row-image-group.jpg

My Goal:

I have a "Project" CPT.
Within each Project, I want to display multiple "rows" of content.
Each "row" can be one of two types, determined by a "row-layout" field:
Gallery Row: Displays one or more images.
Image+Text Row: Displays a single image alongside a block of text.
These different row types need to appear in the order they are entered in the backend (admin). Ideally these rows can be ordered by the user

I keep running into problems and swapping out between repeating rows which don't work, and one-to-many relationships which also don't work and look terrible in the backend. I am very frustrated by how difficult this is, I expected repeating rows to work.

the attached image more or less works in admin, but then I can't get the front end to respect the order of the admin, the gallery items are always grouped instead of allowing me to order the rows in any order I want like:

[gallery]
[image+text]
[gallery]
[image+text]

or

[gallery]
[image+text]
[gallery]
[gallery]

or

[gallery]
[gallery]
[image+text]

#2808795

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - I would like to know how exactly you are displaying the repeating field group?

Can I have problem URL and admin access details and you can also specify with that test problem URL what is your expected result. Once I review your structure I will be able to guide you in the right direction.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2808871

I see you were in the site this morning and seemed to have fixed my ordering problem thank you!! Can you please explain to me what you changed? Was it in the view template or elsewhere?

#2808873

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you pleae check now: hidden link

I've set your both view's to order by "toolset-post-sortorder" - see the Ordering section.
- hidden link
- hidden link

More info:
- https://toolset.com/course-lesson/creating-and-displaying-repeatable-field-groups/#displaying-repeatable-field-groups-in-custom-order

And with the following view:
- hidden link

I've changed the "Query Filter" you added as given under:

Filter by post relationship or repeatable fields group owner
Select items from the Row images group that are related to the Post with ID set by the shortcode attribute wpvrelatedto.
eg. [wpv-view name="view-name" wpvrelatedto="123"]

#2808876

Thank you!! It was so very confusing to me why these would not order the same way they were arranged in the admin. Your fix and link to documentation is highly appreciated.