mintdave on "[Plugin: Custom Content Shortcode] Question about how to reference an absolute URL, not a relative one"

ساخت وبلاگ

Hi,
I have created a custom field called 'article-url' using the ACF plugin. For this field, each entry has a 'value' and a label' (For example one value would be: http://www.time.com, and the label would be 'Time Magazine').

I am trying to display the field label on the frontend, which also links to the field value, when the user clicks on it (So, my website would display 'Time Magazine', which would link to 'www.time.com')

I have used the following code:

<strong>Source of this article: </strong><a href="[field article-url]">[field article-url out=label]</a>

However, the problem is that when I click on the label on the front end, it leads me to http://wwww.mywebsite.com/www.time.com, rather than just http://www.time.com. In other words, it assumes my article-url is relative to my website. How do I change this to an absolute url?

https://wordpress.org/plugins/custom-content-shortcode/

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 38 تاريخ : سه شنبه 24 فروردين 1395 ساعت: 8:33