I have searched and searched, this should be easy and I am failing sorry to bother. I just want to have a conditional output if no taxonomy from my custom taxonomy has been selected. Unassigned in a sense. The slug is task-worker. So if no taxonomy has been selected for that taxonomy I want to simply show "Not Yet Assigned"
I need this for several things or would hash out some random workaround. Thank you for the help!
[wpv-conditional if="( '[wpv-post-taxonomy type="task-worker" format="name"]' eq '' )"]Not Yet Assigned[/wpv-conditional]
I have tried and tried it works, but it's highlighted as though its wrong. I hate to use it if its not correct then have it break all over. Thanks!
Hi,
Thank you for contacting us and I'd be happy to assist.
Your conditional statement is correct and is safe to use. The code highlighter can get confused due to the nested use of double-quotes, but in terms of functionality evaluation won't be affected by that.
If you'd like, you can replace all internal double-quotes with single-quotes, like this:
[wpv-conditional if="( '[wpv-post-taxonomy type='task-worker' format='name']' eq '' )"]Not Yet Assigned[/wpv-conditional]
regards,
Waqar