Skip Navigation

[Resolved] How to display featured image URL

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

Problem:
How to display featured image URL

Solution:
To display the featured image URL you can use following shortcode:

[wpv-post-featured-image size="full" output="url"]

Relevant Documentation:

This support ticket is created 6 years, 5 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 davidR-12 6 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#1100430

On this page:

hidden link

password: Europa-808

To the right of "Helping you teach the tough stuff" you can see I am printing out the featured image URL. However, the URL is malformed in that it is not adding a '/' after the month ( '08' ). so that the number of the month and the name of the file are being combined. Why is this?

the code in full is :

<a href="[wpv-post-url]">
<div class="search-resource-single">
[wpv-post-featured-image size="full" output="url"]
  <div class="search-resource-single-inner">
      <div class="search-resource-single-inner-top" style="background-image: url('[wpv-post-featured-image size="full" output="url"]');">
                 [wpv-conditional if="( $(edd_price) gt '0' )"]
        <p class="search-resource-price-tag">[wpv-post-field name='edd_price']</p>
            [/wpv-conditional]
            [wpv-conditional if="( $(edd_price) eq '0' )"]
        <p class="search-resource-price-tag">Free</p>
[/wpv-conditional]
    </div>
      <div class="search-resource-single-inner-bottom">
[wpv-view name="module-terms-view"] 
        <h3 class="search-resource-single-title">[wpv-post-title]</h3>
        <p class="search-resource-single-age">[wpv-post-taxonomy type="age-category" separator=" "] <span class="search-resource-single-type"> [types field='resource-type'][/types]</span></p>
</div>
  </div>      
</div>
</a>

EDIT: I have discovered that this is only an issue when I set the featured image to full. When I set it to something like 'large' the URL is correct.

#1100594

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - I just checked with the minimum set of Toolset plugins installed on my local test site and I tried to display the featured image URL using the same shortcode:

[wpv-post-featured-image size="full" output="url"]

But I get the correct URL - without any issue:

<em><u>hidden link</u></em> 

Do I miss any step here?

I suggest checking with the minimum set of Toolset plugins installed.
Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes? Do you see any difference?

#1101359

Hi Minesh,

As I am able to sidestep the issue by using a different sized featured image I wont investigate this further.

Regards,

David