Hello. Thank you for contacting the Toolset support.
Could you please tell me what value you want to check conditionally?
As I understand from your code that you've URL param which is assigned as user_id but what you want to check conditionally and whats not working for you.
Looks like syntax problem with usage of quotes. Take a look of editor error colors on the picture.
Editor does not like thouse apostrophe inside quotes. Not printing debug information.
I want to check usermeta 'representing-a-company' and it works, if to set user id like this:
If your concern is regarding the red line - it maybe due to nested shortcodes and the words that do not understand by editor. So there is no harm using the way you are using now.
That was the difference I check with post editor but again I checked with CRED edit form and for me its working. Maybe its issue or nested shortcode you are using.
Can I have problem URL and access details so I can check whats going wrong there?
Ok - the thing is that I need to check the same code on CRED edit user form and I will try to reproduce the issue. I will check this on next week.
The thing is that if I assign static user_id="1463" - the code works but if you use nested shortcode with [wpv-search-term] and even I tried to use custom shortcode:
Your PHP code works well and thanks for that!
But the present case is just small one and I do not want you writing me php on a daily basis.
Did you find out why this nested shortcode works on your server and not on mine?
Main question - is it server based or my software setup issue?
Well - I dont able to reproduce the issue on my clean test install and nested shortcode used to work fine for me. I dont know why its not working on your install.
However - in this case it's not a nested shortcode but you are passing shortcode as attribute. So the solution I shared is better option.