Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Missing enclosing <p> and </p> tags in paragraph text rendering #271

Closed
dandv opened this Issue · 6 comments

2 participants

@dandv

Using 1.14.2. When adding content that contains an empty line in a paragraph text Pods field, the output will miss the opening <p> tag.

Template: <div class="su_au_dec">{@bio}</div>

Input that's rendered correctly:

foo

Rendered:

<div class="su_au_dec">foo</dec>

Input that's rendered incorrectly:

foo

bar

Rendered:

<div class="su_au_dec">foo</p>
<p>bar</div>

I'm calling the template from a shortcode like this: [pods name="advisors" template="advisor_list" orderby="t.order ASC"]

@sc0ttkclark sc0ttkclark was assigned
@sc0ttkclark
Owner

How are you outputting your template code?

@dandv

I have a Pods template advisor_list, which has a bunch of divs with magic tags, then this: <div class="su_au_dec">{@bio}</div>. No PHP.

@sc0ttkclark
Owner

How are you calling your pod page content itself? Are you using pods_content() in your page template?

@dandv

Via a shortcode. I've updated the bug description.

@sc0ttkclark
Owner

Not a Pods bug, looks like a bug with WordPress shortcodes and invalid markup with wpautop:

http://wordpress.stackexchange.com/questions/21414/wordpress-wpautop-shortcode-generating-invalid-markup

@dandv

I've created a ticket with Wordpress for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.