I have a view that displays a repeatable field group. It select posts in Any relationship that are related to the Post with ID set by a shortcode attribute.
If that Post ID doesn't exist, the view should display a "No results" message. Instead, it's returning all the posts that are on the wp_toolset_connected_elements table (even if they are not related at all).
This function will check if a specific view is being viewed and if 'specificmix' attribute value is less than or equal to '0', will change the post type to a fake post type 'xyz', which will show no results.
regards,
Waqar
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.