wp-theatre icon indicating copy to clipboard operation
wp-theatre copied to clipboard

surpessing <br /> in templates

Open bsussman opened this issue 6 years ago • 2 comments

I want to inject an event listing to include "September 30, 2018 at 2:30 PM" on one line

but the shortcode processing surrounds " at " with BR tags.

How do i supress this?

Current code in the page: [wpt_events]{{thumbnail|permalink}} {{title|permalink}} <p>{{startdate}}&nbsp;at&nbsp;{{starttime}}</p>[/wpt_events]

bsussman avatar Aug 20 '18 12:08 bsussman

This may be because of the <p> tags inside the shortcode. Can you replace them with <div>?

slimndap avatar Aug 20 '18 12:08 slimndap

Thanks for the attention :)

Like so: [wpt_events]{{thumbnail|permalink}} {{title|permalink}} <div>{{startdate}}&nbsp;it&nbsp;{{starttime}}</div>[/wpt_events] ("at" replaced with "it" to prove my change was stored.)

Produces identical results. partial screen capture showing the code and rendered bit is attached

div

bsussman avatar Aug 20 '18 14:08 bsussman