• Resolved martinneumannat

    (@martinneumannat)


    If I put post content into a Template it will output the text nicely, but not do any paragraph markup. Is there a WordPress function that I can use in order to automatically add the <p> tags to my text? Would be so nice to have my paragraphs properly formatted.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    It should output the paragraph tags properly unless you’ve got it wrapped with something funny in your template. I use post_content rarely because it’s usually already handled by the theme so there’s no need to repeat it.

    Are you using Auto Templates with Pods Templates? If so, you would also not repeat the post_content in your Pods Templates. You’d use before or after settings and let your pod template be output before or after the_content filter.

    If you can share your template, I can let you know if something else is stepping in the way.

    Thread Starter martinneumannat

    (@martinneumannat)

    I am showing Post content from 2 related pods at the same time, for the reason I need to use post_content. Here the template I am using:

    
    [if ministerio]
    <h3>O Ministério</h3>
    {@ministerio.post_content}
    
    <p>&nbsp;</p>
    <p>Pessoa de contato: {@ministerio.contato}<br>
    Telefone: {@ministerio.telefone}<br>
    Whatsapp: {@ministerio.whatsapp}<br>
    Website: <a href="{@ministerio.website}" target="_blank">{@ministerio.website}</a><br></p>
    [/if]
    
    Plugin Contributor Jim True

    (@jimtrue)

    I think it’s because you’re traversing with the {@ministerio. is this a single select or multiple select relationship? Try it with an [each ministerio]{@post_content}[/each] (which will only work if it’s a multiple-select relationship) and see if you get a different result.

    Plugin Contributor Jim True

    (@jimtrue)

    We haven’t heard back from you on this one, so we have to assume you’ve resolved the issue or found another solution. If this isn’t the case, please feel free to reply to this post or jump on our Slack Chat at https://pods.io/chat/

    Thread Starter martinneumannat

    (@martinneumannat)

    Yea, it looks like on related posts there is an issue. I resolved to do a custom template, because with the auto templates I did not get it to work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Formatting of Post Content’ is closed to new replies.