Skip Navigation

[Resolved] the Views for repeatable group is not showing in another Views

This thread is resolved. Here is a description of the problem and solution.

Problem:

Displaying related posts within another view's loop.

Solution:

In the child post view. it needs to be filtered by:
select posts that are a related to the current post in the loop

Relevant Documentation:

This support ticket is created 4 years, 3 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: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 3 voices.

Last updated by ben 4 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1435599

ben

Hi,

I have a Repeat Group, and I know in order to show it on the frontend, I need to create a Views for this Repeat Group, and I have created Views for it.

In my Single page, after adding [wpv-view name="display-room-info"], the page looks and works fine,.

However, when I add this [wpv-view name="display-room-info"] to in the Loop Item of another Views, it shows "No items found" on the frontend.

I know adding Views in another Views is doable, but I just don't know why it's not working for me.

Please let me know if you need more info from me.

thanks,
ben

#1435699

Dear Ben,

How do you setup the another Views?
How do you setup the post types and Repeating field Groups?

I assume we are talking about this:
1) A custom post type "Room"
2) In above post type "Room", there is a Repeating field Group "Room info"
3) Inside Repeating field Group "Room info", there are some custom fields.

And you are going to setup a post view, display "Room" posts, and display each "Room" post's "Room info"

If it is, it is possible with a nested view, for example, you can try these:
Create a new post view "Room posts":
- Query "Room" posts
- Within Views loop, display your view's shortcode:
[wpv-view name="display-room-info"]

#1435763

ben

Thank you for your quick reply.

what your assumed is 100% correct and actually, I did what you said. not sure where is the problem.

Could you turn on the confidential reply for me and I can provide you the Admin account, maybe that's easier for you to help me.

Also, since my site is a Chinese site, it's good that you can help with that.

谢谢 🙂

#1437141

请备份好你的网站,并在private detail box提供你的网站登录信息,指出有问题的页面和view的URL地址,我好登录进去查找问题,谢谢!

#1437963

Minesh
Supporter

Languages: English (English )

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

Luo is on holiday today. He will get in touch with you as soon as he will get back to work.

#1438999

我可以登录到你的网站,并做了一下改动:
1)编辑view "display room info":
hidden link
在区块“查询过滤器”
修改为:
从房型组合组中选择项目that are a related to the current post in the loop.

这样view可以从父view拉取数据

2) 在区块“内容选择”取消选项“马代套餐”

你测试看是否修复了。

#1439007

ben

谢谢你,完美解决,并且我也知道了背后的原因。另外,可以在这里用中文来寻求帮助太给力了。再次感谢你杨先生。祝新年快乐。

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.