Skip Navigation

[Waiting for user feedback] Query filter with in a view doesn’t work properly if there is no related post

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

Last updated by Minesh 1 day, 11 hours ago.

Assisted by: Minesh.

Author
Posts
#2798144

I am trying to:
- I created a simple view to display a text from post type "A" with a query filter. The filter selects items in a relationship of post type "A" and "B" using "The post with ID set by the shortcode attribute".
- Some posts of the post type "A" do not have a related post of the post type "B". But a view instead of showing nothing, displays a text field of the first post "A". This creates a huge mess and it looks like a bug in my opinion.
- When I place an id of the related post into shortcode attribute the view's query filter still doesn't work.
- However, if I use other query filter options and the view doesn't have a shortcode attribute in it I don't see such issue. In this case if no related posts - view would display nothing.

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

#2798430

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please share problem URL and tell me for what post you do not have related post available or for what post there is no related post-relationship post available and also share what view you are using.

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