Skip Navigation

[Resolved] Conditional block that has a dynamic URL not formatting correctly

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 0 replies, has 1 voice.

Last updated by rolandL-2 2 days, 13 hours ago.

Assisted by: Minesh.

Author
Posts
#2805464
uw medicine bio url published formatting view.JPG
uw medicine bio url editor formatting view.JPG
uw medicine bio url settings.JPG

I am trying to: I have a conditional block that if a user has provided a medical bio url in the uw-medicine-bio field, it gets displayed onto the users profile with the URL text being "UW Medicine Bio" and then the text links to the URL that was provided.

I'm using the code:


[wpv-conditional if="($(uw-medicine-bio) ne '')"]
 
UW Medicine Bio
 
[/wpv-conditional]

We are using the Beaver Builder powerpack theme. Attached is a screenshot of the URL settings as well.

Link to a page where the issue can be seen: hidden link

I expected to see: see screenshot of the editor formatting view attached to this ticket. I expected to see the linked text "UW Medicine Bio"

Instead, I got:The code is displaying instead of the text with the linked url. See either the link listed above where the issue can be seen. Or the screenshot attached labeled uw medicine bio url published formatting view.

#2805538

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share admin access details and let me check how you configured your custom field.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2805770

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Thank you for the login information. Minesh is not available today but he will answer back on Monday after the troubleshooting.

Thank you for your patience.

#2805997

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now:
- hidden link

I see that you are using the Beaver Builder to build the Toolset content template.

I've added the conditional shortcode as given under:

[wpv-conditional if="($(uw-medicine-bio) ne '')"]

<a href="[types field='uw-medicine-bio' output='raw'][/types]" target=""_blank"" rel=""noopener""> UW Medicine Bio </a>

[/wpv-conditional]

Can you please confirm it works as expected.

#2806260

This works now thanks for the solution.