Skip Navigation

[Resolved] How to remove empty URL in Views

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

Problem:

The issue here is that the user wanted to not display any content if a specific field is empty.

Solution:

I would recommend checking the link below.
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/checking-fields-and-other-elements-for-emptynon-empty-values/

This should be able to assist you with doing this as you can set the conditional to only display your content only if the field is not empty.

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

Our next available supporter will start replying to tickets in about 2.22 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)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by kristenM 5 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1317943
URL adress empty.jpg

I have earlier had an excellent help from you good people in support and now it looks like I need your help again.

I have made a View from some dynamic fields and I'm showing them in this map-view here: hidden link.

Some of the URL's from this View are empty and now I can see that Views uses the default URL from the webpage. It shows default: hidden link. See image.

Is there any way I can remove the empty link in an URL?

I have tried this link but I don't see this as means to resolv this problem: https://toolset.com/forums/topic/empty-fields-show-in-results/

I look forward hearing from you.

Kind regards

Kristen

#1317969

Shane
Supporter

Languages: English (English )

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

Hi Kristen,

Thank you for getting in touch.

What you can do is try to use the Conditionals that we have to check if the field is empty.

Have a look at our documentation below.
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/checking-fields-and-other-elements-for-emptynon-empty-values/

Thanks,
Shane

#1317989

My issue is resolved now. Thank you!