I would like to get an exact copy of your website for our developers to test and look for the problem first.
As we don't want to interfere with your original site, I'd like to ask you for a permission to create a Duplicator package (https://wordpress.org/plugins/duplicator/) which contains all the files and a database dump.
As soon as I can create a Duplicate, I will report this to our developers and I will be able to tell you how fast it will be fixed.
There are multiple problems with it. One is in the line I've marked with a WARNING. One thing is that you use an unknown variable $settings - where does it come from? And the second thing is that you make assignment (=) instead of comparison (==) - this means that the next line will be always executed for every View and it will limit displaying of posts everywhere.
Once you comment out this code, everything starts to work fine.
As for the View with ID 201, here's a comment from our lead developer: "Now, let’s look at the View with ID 201: “my merchants listing??. This is the View which seems to need to list only items created bu the same user viewing the results. I would stringly suggest adding a query filter by author there, and set it to filter by the current logged in author. This will have the same effect that the manual filter on the functions.php file had produced, but on a safe way. We have a GUI for that, so the custom code method is not recommended at all."
Thank you for looking into this and providing me with the update.
First of all, I have to say that I chose to use Toolset because I am not good at coding at all. The code that you are referring to was done and recommended to me to by one of your representatives, Adriano.
I was facing an issue to allow each merchant to post coupons only for their own businesses on their account page; however, the CRED form was allowing the merchant to post coupons for other businesses as well. That function was done by Adriano to address this issue. The solution was based on a recommendation, made by Ana Couto on another thread. Please refer to the links below:
I did not notice that this function was the cause of this problem.
I really don’t know where to go from here. All I am asking for a user to be able to publish a post by using child fields? You would think that this would be an essential part of the whole Toolset idea without the need of custom coding.
I really need someone to address this issue. I strongly suggest to get in touch with your colleague, Adriano to find out what else can be done about it?
Please note that these issues have been going on since May 2014 and you would appreciate that I really would like a speedy solution and to move on to other tasks that I need to work on.