This topic contains 10 reply and 2 voices, and was last updated by Tareq Hasan 6 years, 1 month ago
Viewing 10 Posts - 1 through 10 (of 10 total)
Author Posts
August 19, 2013 at 10:31 pm 7159
Tareq Hasan 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
August 20, 2013 at 1:29 am 7166
Tareq Hasan Tareq Hasan

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.

August 20, 2013 at 2:26 pm 7195
nathaliehamidi nathaliehamidi This reply has been marked as private.
August 20, 2013 at 2:52 pm 7197
Tareq Hasan Tareq Hasan

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.

August 20, 2013 at 2:58 pm 7198
nathaliehamidi nathaliehamidi

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

August 20, 2013 at 3:20 pm 7200
Tareq Hasan Tareq Hasan

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

August 20, 2013 at 3:24 pm 7201
nathaliehamidi nathaliehamidi

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

then later:

if ( $book_excerpt != "" ) {
	echo ( "<h2>Excerpt</h2>"
	. "<p>&nbsp;</p>"
	. $book_excerpt
	. "<p>&nbsp;</p>" );
August 20, 2013 at 3:25 pm 7202
nathaliehamidi nathaliehamidi

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

August 20, 2013 at 3:46 pm 7205
nathaliehamidi nathaliehamidi

Before I publish them

Wordpress Edit post screenshot:

Preview:

After I press publish

Wordpress Edit post screenshot:

Published post:

August 22, 2013 at 2:21 pm 7295
nathaliehamidi nathaliehamidi

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

August 23, 2013 at 5:11 am 7358
Tareq Hasan Tareq Hasan

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 10 Posts - 1 through 10 (of 10 total)