Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabs in excerpt content after import when using Gutenberg #181

Closed
yura-x opened this issue Mar 21, 2019 · 5 comments
Closed

Tabs in excerpt content after import when using Gutenberg #181

yura-x opened this issue Mar 21, 2019 · 5 comments

Comments

@yura-x
Copy link

yura-x commented Mar 21, 2019

Hello! Thanks for your great plugin!
After exporting content from one installation to another (both using Gutenberg editor - WP version - 5.1) I found that there is no excerpt on blog feed.
After digging the problem I found that post excerpt field on right hand side of Gutenberg editor contains several tab symbols (\t) and browser do not print them on frontend of course. If excerpt was blank (as it should be), then WordPress uses generated excerpt and then will be no problem.

@stylethemes
Copy link

Yes I'm also facing the same issue when importing the demo there is no excerpt in the blog posts it did happen also when using the classic editor in both installs this problem did start occurring after ver 5.0.3

with 5.0.3 installed the demo import show the excerpt anything after no excerpt and it doesn't matter if Gutenberg is installed or if the classic editor plugin is installed because I did test both of theme

@primozcigler
Copy link
Contributor

Hi,

Thanks for reporting this. ATM I have no time to fix this issue and considering OCDI is a free plugin and we don't monetize it, I'll appreciate if anyone else will step in and provide a PR with a fix.

@yura-x
Copy link
Author

yura-x commented Mar 25, 2019

Manual editing of XML file works for me.
I have replaced every instance of this:

 <excerpt:encoded>
				<![CDATA[]]>		</excerpt:encoded>

to this (all tabs symbols removed) :

<excerpt:encoded><![CDATA[]]></excerpt:encoded>

and my problem was resolved.
@primozcigler - thanks for sharing your great plugin!

@marjesch
Copy link

marjesch commented May 1, 2019

yura-x, THANK YOU so MUCH for posting this. I ran into the same problem with a huge site today. Your solution saved me a boatload of time. I'm SO grateful!

@capuderg
Copy link
Contributor

Hi everyone,

sorry for the late reply.

I've just exported the content from a test site and all the empty excerpt fields exported to:
<excerpt:encoded><![CDATA[]]></excerpt:encoded>, so I didn't have the tabs in the exported file.

Was this may be an issue with the WP export functionality and was since fixed?

Does anyone still have this issue when exporting in WP?

I'll close this issue for now, but if new info is reported we'll investigate.

Thank you for reporting this problem and have a nice day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants