Skip Navigation

[Resolved] Two view blocks on same page can't have different Query

This support ticket is created 4 years, 9 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
- 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 2 voices.

Last updated by petranL 4 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#1501393

I am trying to: Placing 2 view blocks on the same page with a different query for each view

Link to a page where the issue can be seen: hidden link

I expected to see: One view with concerts and the other view with exhibitions. Both concerts and exhibitions are categories.

Instead, I got: When I change the query from one of the views, the other one is changing as well.

#1501639

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please share the problem URL where you added the view and access details so I can check the issue further.

*** 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.

#1501713

Minesh
Supporter

Languages: English (English )

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

Unfortunately, the wp-admin access details you shared is not working at this end. Can you please send me working wp-admin access details.

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

#1502857

Minesh
Supporter

Languages: English (English )

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

Again - I tried to login using the new access details you sent to me but still no luck. I could not able to login to your system.
- As soon as I tried couple of times - it says now I've been locked out.

Can you please send me working access details and unlock the account.

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

#1503167

Minesh
Supporter

Languages: English (English )

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

I can see that you are using the Block View to and wanted to filter your block view using different Categories.

The thing is that you are adding the same view that is why when you change the filter at one view it applies the changes you made to your another view as well because both views you actually added are the same view. To filter the same view using shortcode attribute is not supported yet but its already known to us and we do have plans to add that feature but when it will be implemented and published I do not have any ETA on that.

So, I've changed the "Editing experience" setting at: Toolset => Settings => Editing experience to "Show both the legacy and Blocks interface and let me choose which to use for each item I build". This setting will allow you to build the views using classic mode.

I've created the following view:
=> hidden link

And added that view to the following page:
=> hidden link

You can see it in action here:
=> hidden link

As you can see one view that is added to filter the view using the shortcode attribute and value of shortcode attribute is "concert" as you can see with the following image - displays the results.
=> hidden link

And we added the same view again, and that view is added to filter by shortcode attribute and value of shortcode attribute is "geen-onderdeel-van-een-categorie" where there is no posts so its showing no post found.

Regarding your another question - I'll split the ticket and handle it there.

#1503221

My issue is resolved now. Thank you!