Skip Navigation

[Resolved] Shorten Url and Append Text

This thread is resolved. Here is a description of the problem and solution.

Problem:
Shorten Url and Append Text

Solution:
You need to write the custom shortcode that should extract the only domain name from your given URL.

You can find the proposed solution in this case with the following reply:
=> https://toolset.com/forums/topic/shorten-url-and-append-text/#post-1999021

Relevant Documentation:

This support ticket is created 3 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.

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 2 replies, has 2 voices.

Last updated by michaelA-13 3 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#1998971

Tell us what you are trying to do?

Hello! Using views I am display urls which works just fine.

But what I would need is the url to be shortened after the TLD and text to be appended.

e.g.

hidden link

becomes

hidden link...

Thanks

#1999021

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

You need to write the custom shortcode that should extract the only domain name from your given URL.

The following function may help you to build your shortcode:
=> https://developer.wordpress.org/reference/functions/wp_parse_url/

More info:
=> https://toolset.com/documentation/adding-custom-code/how-to-create-a-custom-shortcode/

#1999167

My issue is resolved now. Thank you!