I can see now that I hadn't tried using the types field shortcode after all. Using this works. I don't see how your example shortcode will work; it doesn't contain a whole argument:-
[wpv-conditional if="( '[types field='gender' item='@student-profile-course.parent'][/types]' )" debug="true"]I'm Female
[/wpv-conditional]
and shouldn't the quotes inside the shortcode be like this ", not like this ' ???
This is really frustrating because my instinct is to use the conditional button when I'm editing the Content Template to create the code (see image) but when I do it this way the code created looks like this:-
[wpv-conditional if="( $(wpcf-gender).id(post) eq 'Female' )"]I'm Female[/wpv-conditional]
and even if I select from Parent post instead, the resulting condition doesn't use types shortcodes
If this format won't work why is it even possible to create this style of shortcode??
What's even more confusing is if I use a conditional shortcode to directly compare the value of a field in the current post with a field in the parent post, I don't have to use the types shortcode. A format like this (on the same Content Template) works:-
[wpv-conditional if="( $(wpcf-start-date) lt $(wpcf-enrol-date item='@student-profile-course.parent') )"] This course started before you enrolled[/wpv-conditional]
so why doesn't the conditional with 'eq' or 'ne' arguments work in this format??
Furthermore in the documentation here https://toolset.com/documentation/user-guides/conditional-html-output-in-views/using-shortcodes-in-conditions/ the example code for using types shortcode is missing parentheses so that wouldn't have worked even if I'd found it.
[wpv-conditional if=" '[types field="consultant-price-per-hour"][/types]' gt '0' "]Price per hour: [types field="consultant-price-per-hour"][/types] [/wpv-conditional]
There are also NO examples at all about using shortcodes in conditions for related posts on this help page and no links to such documentation either.
It's taken a whole week of trial & error testing and trying to find the right information. Something has to change!