I'm trying to create some content based a value in a custom user field. To get started i'm just testing for the existence of any content at all with this statement before i refine it for specific values. But nothing is displaying as true- Do i have the syntaxt correct
I'm using this in a user record view
[wpv-conditional if="( '[types usermeta="school-levels"][/types]' ne '' )"]
school has a level
[/wpv-conditional]
Retrieving a custom field is possible only in the context of a view.
I suggest that you add a test page and inside the page, use the block editor to add the view block.
Set the proper custom field as the source of the view and inside the view add the conditional block and set it with the wizard to whatever you need.
Then add a single field block to show the custom field.
If everything works ok click the Three Dots WordPress menu icon at the very top right section of the screen and select the "Code Editor" option and in the changed code you can see the generated shortcode which you can use.