Home Forums Plugin Support WP User Frontend (Free Version) Formatting working only the second time?

This topic is: not resolved

This topic contains 10 replies, has 2 voices, and was last updated by  Tareq Hasan 5 years, 9 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #7159

    nathaliehamidi
    Participant
    Post count: 6

    Hello,

    I use this plugin on my website http://findreadlove.com/
    Authors add their books, and when they add the excerpt, even though I have put a rich textarea, the formatting is all mushed up (no line breaks) and only works when they re-edit the book.

    Could you tell me what I am doing wrong?

    Example where it does not work: http://findreadlove.com/horror/pacifier-6-the-shadows-within/ (please scroll to Excerpt)

    Where it works after re-editing the form: http://findreadlove.com/fantasy/lash-broken-angel/

    Thanks,
    Nathalie Hamidi

    #7166

    Tareq Hasan
    Keymaster
    Post count: 2831

    I am not sure why this would happen, cause both edit and add post functions is handled by the same code. Can you please re-sure that this is a bug? In that case you can put your sites address and login details in a private reply so I can try to understand what is going on in your site and help you.

    #7195

    nathaliehamidi
    Participant
    Post count: 6
    This reply has been marked as private.
    #7197

    Tareq Hasan
    Keymaster
    Post count: 2831

    I think thats the problem. In WP backend, the excerpt area is just a simple textarea. So when you update the post status, it loses all the formatting. You may try installing this plugin, it inserts a rich text area for excerpt. So you shouldn't be losing the formatting.

    #7198

    nathaliehamidi
    Participant
    Post count: 6

    I'm not sure this is it because the “Excerpt” of the book is not the wordpress post excerpt, it is *called* Excerpt on the page, but it is a textarea field with rich textarea from your form.

    See here: http://findreadlove.com/wp-admin/post.php?post=18&action=edit
    Textarea: Book Excerpt

    #7200

    Tareq Hasan
    Keymaster
    Post count: 2831

    That's weird, the formatting in the text editor seems okay. But it's displaying without formatting. How are you printing the excerpt?

    #7201

    nathaliehamidi
    Participant
    Post count: 6

    $book_excerpt = get_post_meta ( $post->ID, 'book_excerpt', true );

    then later:

    if ( $book_excerpt != "" ) {
    	echo ( "<h2>Excerpt</h2>"
    	. "<p> </p>"
    	. $book_excerpt
    	. "<p> </p>" );
    #7202

    nathaliehamidi
    Participant
    Post count: 6

    My users say that once it is published, if they enter the book excerpt a second time, it works fine.

    #7205

    nathaliehamidi
    Participant
    Post count: 6

    Before I publish them

    Wordpress Edit post screenshot:

    Preview:

    After I press publish

    Wordpress Edit post screenshot:

    Published post:

    #7295

    nathaliehamidi
    Participant
    Post count: 6

    Any chance with finding out what happens?
    Thanks for any help.

    #7358

    Tareq Hasan
    Keymaster
    Post count: 2831

    Sorry, it still seems weird to me. I can't seem to understand what is breaking the formatting as I can see it fine in the admin area. I'll dig further.

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Formatting working only the second time?’ is closed to new replies.