Skip to content
This repository

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

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

2 participants

Dan Dascalescu Scott Kingsley Clark
Dan Dascalescu

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"]

Scott Kingsley Clark
Owner

How are you outputting your template code?

Dan Dascalescu

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.

Scott Kingsley Clark
Owner

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

Dan Dascalescu

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

Scott Kingsley Clark
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

Scott Kingsley Clark sc0ttkclark closed this August 25, 2012
Dan Dascalescu

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.