Jump to content


Photo
- - - - -

Content's line returns not displayed

wpautop line returns

  • Please log in to reply
6 replies to this topic

#1 golok

golok

    Member

  • Members
  • 11 posts
  • LocationGeneva
  • Framework Version:2.4
  • Country: Country Flag

Posted 01 January 2014 - 12:45 AM

I am facing a weird problem with PageLines Framework 2.4 and WordPress 3.8; line returns are disappearing on posts although they are still present in the editor (be it in visual or text mode) after saving.

As you can see from the following screenshots, this problem doesn't occur with WP built-in themes (twentytwelve, twentythirteen and twentyfourteen), but exclusively on PageLines' default theme, even after disabling all plugins.

 

twentyfourteen.jpg

In WP's twentyfourteen theme

pagelines.jpg

In PageLines default theme

 

Could it has something to do with the "wpautop" function? In the "class.shortcodes.php" file, the following code can be found:

Please Login or Register to see this Hidden Content

Thanks in advance for any help.



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 17653 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 02 January 2014 - 11:12 AM

HI,

 

Can you show us (screenshot) what is in the editor for that page please.



#3 golok

golok

    Member

  • Members
  • 11 posts
  • LocationGeneva
  • Framework Version:2.4
  • Country: Country Flag

Posted 02 January 2014 - 11:50 AM

Hi Danny,

 

below are the screenshots of the editor.

text_editor.jpg

visual_editor.jpg



#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 17653 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 02 January 2014 - 12:50 PM

Hi,

 

I have just tested this on my test site using PageLines Framework 2.4.4 and Wordpress 3.8, I have no such issue.

 

Please Login or Register to see this Hidden Content

 

Therefore, its likely that you have a plugin causing a conflict, on my test site I have no plugins.



#5 golok

golok

    Member

  • Members
  • 11 posts
  • LocationGeneva
  • Framework Version:2.4
  • Country: Country Flag

Posted 02 January 2014 - 01:52 PM

Weird… As previously mentioned, I had deactivated all my plugins… Furthermore, after reading your answer and your framework version, I updated my PageLines Framework from 2.4 to 2.4.4 — just in case. But to no avail… Line returns are still not displayed…



#6 golok

golok

    Member

  • Members
  • 11 posts
  • LocationGeneva
  • Framework Version:2.4
  • Country: Country Flag

Posted 02 January 2014 - 01:59 PM

Danny,

 

On another install, using the Base Theme 1.0.2, I managed to get the line returns via the following code, using the wpautop function mentioned above:

Please Login or Register to see this Hidden Content

So I think my first guess was correct: it must have something to do with the "wpautop", isn't?



#7 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 02 January 2014 - 06:21 PM

The screenshot shows an excerpt not the actual post. If you want p tags allowed in excerpts then you have to add p to the allowed excerpt tags in the settings area.

 

That filters function is not actually used anywhere.







Also tagged with one or more of these keywords: wpautop, line returns