Skip to content

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

Closed
dandv opened this Issue Aug 20, 2012 · 6 comments

2 participants

@dandv
dandv commented Aug 20, 2012

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 Aug 20, 2012
@sc0ttkclark
Pods Foundation, Inc member

How are you outputting your template code?

@dandv
dandv commented Aug 26, 2012

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
Pods Foundation, Inc member

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

@dandv
dandv commented Aug 26, 2012

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

@sc0ttkclark
Pods Foundation, Inc member

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
dandv commented Aug 26, 2012

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.