Skip Navigation

[Waiting for user confirmation] Can’t create filter by post relationship or repeatable fields group owner

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 5 replies, has 1 voice.

Last updated by Minesh 2 minutes ago.

Assisted by: Minesh.

Author
Posts
#2823315
image-03.png
image-02.png
image-01.png

My old posts are fine but I just created a new post and it returns post ID's instead of value (see image-01). I went to check my views (made with Toolset Views) and tried to change the post relationships and now I lost me filter by post relationship or repeatable fields group owner and I cannot recreate it (see image-02 and image-03).

My view ID is 8400. Can you look at it and explain why I am not able to make my filter work properly as it used to?

I did not provide a duplicator package but I have a staging site with backups so you are allowed to work on my staging site. Please give me detail about any change you do in my staging site as I will have to replicate this on my production site.

Thank you.

#2823463

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

First of all, based on the debug information you shared I find that you are using the outdated Toolset plugins. We always recommend running your site with the latest stable release plugin version.

*** Please make a FULL BACKUP of your database and website.***

Could you please update ALL Toolset plugins to it's latest officially released version. You can download the latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/

Alternatively, You can install/update Toolset pluigins using the installer plugin:
-https://toolset.com/faq/how-to-install-and-register-toolset/#automatic-installation-once-you-have-otgs-installer-plugin-installed

Once you update ALL Toolset plugins to latest version:

Can you please undo the change you make to yoru view and then share problem URL where you added your view and tell me what exactly you would like to achieve and what is your expected output.

#2823509
image-03.png
image-02.png
image-01.png

My live site (where I first found the problem) was all up-to-date. I still should have updated the staging before opening this ticket.

Here is what I just did:

1- I updated all plugins.
2- I created a post named Test (ID 16479) and filled the required fields.
3- I added two entries for my repetitive field (PF Description - Pièces) -> Title=Test1, Value=Value 1, Title=Test2, Value=Value 2 (see image-01).

On front end I would expect to see Test 1, Value 1 etc. But instead I see 16480, 16481 (see image-02).

Note that if I look at an older post I still see the entered data correctly (see image-03). So maybe the problem is not with the view but in the way data is stored.

Let me know if any question.

#2823927

Minesh
Supporter

Languages: English (English )

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

Can you please share the test page URL where you added the view and let me review that.

#2823979

My view is not inserted in a page. I am using a template and the parent view (8398) has this filter : Select items from the Pieces group that are related to the Post where this View is shown. Then view 8400 is used in View 8398.

Placing the view in a page will return no results as the page does not have any linked values for the repetitive field. It has to be used in a post single page. So, all I can give you is the link to a post where the view is shown: /edit-propriete/100-av-des-sommets-verdun-ile-des-soeurs/

You will have to scroll down the page and toggle the Pieces section to see where the problem is happening. Note that this has been developed years ago and it only stopped working recently. We have made no change and we suspect that the problem started after a Toolset update.

Thank you.

#2824077

Minesh
Supporter

Languages: English (English )

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

Can you please check now:
- hidden link

When I checked with the custom field group you have and I found that you are using nested repeating field gorup:
- hidden link

So, with the child view:
- hidden link

I've changed the query filter as given under:

Filtrer par relation de publication ou propriétaire de groupes de champs répétables
Sélectionner des éléments à partir du groupe Piècethat are a related to the current post in the loop.

And I can see it displays the correcyt result. Can you please confirm it works as expected.