Skip Navigation

[Resolved] Substitute URL Link with name

This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Noman 6 years, 9 months ago.

Assisted by: Noman.

Author
Posts
#548168

I am trying to: I'm using a url link field and want to substitute the link with a custom name ie.

Source: <_a href="[types field='link' target='_blank'][/types]">[types field='source-name'][/types]<_/a>

Output is at bottom: hidden link

I expected to see: Source: Test Test

Instead, I got: Source: <_a href="hidden link Test<_/a>

#548286

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

page not found.png

Hi Damond,

Thank you for contacting Toolset Support. I can not see anything on this page, it says “Oops! That page can’t be found.”(see attached screenshot): hidden link

I am not quite clear on the requirements and it is confusing a bit. I noticed there is an additional underscore_ in your source code, please try this one:

<a href="[types field='link' target='_blank'][/types]">[types field='source-name'][/types]</a>

Can you please provide working frontend page and backend screenshot for this?

Looking forward to help you, Thank you

#548325

Hi Noman,

I accidentally deleted the page. Here's a new link with the same error.

hidden link

I've tried the code you suggested and I'm still getting the same output.

#548370

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Ok I got the issue now, please use this updated shortcode and it will work fine:

 <a href="[types field='link' output='raw'][/types]" target='_blank'>[types field='source-name'][/types]</a> 

Thank you

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.