Skip Navigation

[Resolved] removing tags

This support ticket is created 4 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.

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 3 replies, has 2 voices.

Last updated by Shane 4 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#2110459

Hello,

I've notice that when using [wpv-post-body view_template="None"] and [wpv-post-title], <p> are within those shortcodes. Is there a way to remove those <p> tags? I'm trying to style a template using all <br /> tags.

Thx,
dL

#2110489

Shane
Supporter

Languages: English (English )

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

Hello,

Thank you for getting in touch.

You should be able to do this by using the shortcode in the documentation below to remove the auto paragraph tags.
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-noautop

Please let me know if this helps.
Thanks,
Shane

#2110555

Hey Shane,

That did took care of my issue, thx. One other question. If a taxonomy result is empty, is there a way to add a default message when the filed is empty?

Thx again,
dL

#2112343

Shane
Supporter

Languages: English (English )

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

Hi David,

Are you referring to the frontend ? Let say if the post doesn't have a taxonomy term selected?

You will need to make use of our Conditional as well as the has_term() function here.
https://developer.wordpress.org/reference/functions/has_term/

However you will need to register this function at Toolset -> Frontend -> Functions inside conditional evaluations

Please let me know if this helps.
Thanks,
Shane