Archived

This topic is now archived and is closed to further replies.

  • 0

Help with wpautop

Question

Posted · Report post

Hi there,

 

I am trying to use a plugin for real estate agents that is not formatting properly. Their techs say that it is an issue with the theme. Please help! Below is their email.

 

"There is a filter within the WordPress page and post editor called, "wpautop" that all content within pages and posts is run through when you create a new page / post on your blog. The filter helps save you time on some formatting issues within pages / posts without you having to know HTML. [read more about this filter here: http://codex.wordpress.org/Function_Reference/wpautop] dsIDXpress is programmed to REMOVE this filter to protect the look and feel (the formatting) of all pages generated by dsIDXpress. The issue that you are currently experiencing is because your theme is forcing the content of our pages to be processed by the "wpautop" filter, or similar functionality, which then changes the formatting of our pages and produces the errors that you see within the those pages.

 

Typically, this occurs because the theme developer has implemented a short-code called "raw" directly into the theme. "Raw" was popularized before WordPress introduced short-code API [read about short-code API here: http://codex.wordpress.org/Shortcode_API], and is implementing a less than perfect content filtering stack, which leads to the forceful execution of "wpautop". It is important for theme developers to use the short-code API when building short-codes to alleviate issues such as the one you are currently experiencing within your blog.

 

Whether you are using a free theme, a purchased theme, or have had a custom theme developed it is important for the theme developer to change this on their end to ensure that anytime you update the theme in the future the same issue does not recur."

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

Hi Katie,

 

The option for a shortcode usiing raw exists in PageLines Framework, but to my best knowledge, not in PlatformPro.  It is quite common for developers to blame the theme, but in this case, I am confident the theme has nothing to do with this.  In fact, this is something that seems much more like something with WordPress, not the theme, considering the age of the theme.  Did you try to apply the recommended code into the functions.php in PlatformBase with a hook?

 

How did you try to implement anything?

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,  can you provide the link you're implementing this plugin?

Share this post


Link to post
Share on other sites

Posted · Report post

PlatformPro contains no filters for autop.

Share this post


Link to post
Share on other sites