Skip Navigation

[Resolved] Why does this template markup stop page loading?

This support ticket is created 8 years, 1 month 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.

Our next available supporter will start replying to tickets in about 8.05 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 6 replies, has 2 voices.

Last updated by Shane 8 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#426680

I have added this to a content template to only output the div if a featured image is set:

[wpv-conditional if="( '[wpv-post-featured-image]' ne '' )"]
<div class="album-review-cover">[wpv-post-featured-image size='medium']</div>
[/wpv-conditional]

However when this is on the template the front end page using the layout that uses this content template will not load, it just hangs and stays loading forever. I have used these conditionals to check other fields and it works ok.

Here is the full template code. If I delete the code above from it then page loads. If it's present then it does not:

<h1>[wpv-post-title]</h1>
[wpv-conditional if="( $(wpcf-album_rating) ne '' )"]
<div class="glyphicon star-rating-[types field='album_rating' output='raw'][/types]"></div>
[/wpv-conditional]
[wpv-conditional if="( '[wpv-post-featured-image]' ne '' )"]
<div class="album-review-cover">[wpv-post-featured-image size='medium']</div>
[/wpv-conditional]
<div class="album-review-body">[wpv-post-body view_template='None']</div>
#426695

I have also tried adding debug="true" but no debug info is shown.

#426795

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mike,

Thank you for contacting our support forum.

Before I can begin debugging your website, I would like for you to provide me with the debug information on the site.

You can do this by following the instructions in the link below.
https://toolset.com/faq/provide-debug-information-faster-support/

Thanks,
Shane

#426826

Did you try the code? Are you able to check for existence of featured image?

#426867

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mike,

I haven't tried the code but it should work.

Would you mind providing me with admin access to the website so that I can check on the issue ?

The private fields will be enabled for your next response.

Thanks,
Shane

#426988

All I will be doing is creating a digital ocean droplet and installing plugin. Any reason you can't try this locally first to see if it works?

#427121

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mike,

Try doing it like this.

[wpv-conditional if="( '[wpv-post-featured-image output='url']' ne '' )"]

[wpv-post-featured-image size='medium']
[/wpv-conditional]

This worked fine on my end.

Thanks,
Shane

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