permalink shortcode does not expand correctly inside a link

Plugin Author
bnfw

(@voltronik)

Hi @franszs,
Thanks for your message.

I haven’t had any other reports of this. It’s possible a filter somewhere inside WordPress is changing this. One thing you can check is the raw source of the email to see if this is indeed the case or if it’s something your email client/app is adding to the link.

Let me know how you get on.

hi @voltronik,

thnx for your fast reply.

My mail client is thunderbird; if i select view – source (not sure this is named so in english) or ctrl-u, i see the plain message and inside it: <a href=”http://https://my-site.nl/test/”&gt;

So i guess it’s some filter then. As a workaround i use the permalink as plain text which gives the correct URL, but is not clickable.

Thnx,
Frans

  • This reply was modified 32 minutes ago by franszs.

Plugin Author
bnfw

(@voltronik)

Hi @franszs,
No problem.

Can you try:

<a href="https://projectdmc.org/permalink-shortcode-does-not-expand-correctly-inside-a-link/">Link Text</a>

Or is that what you had before?

Hi @voltronik,

Indeed using the text editor and typing the html with the shortcode did the trick. Before i used the visual editor and entered the shortcode in the pop up you get when using the link button (the little chain).

Thnx for your help.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer