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

Doesn't copy excerpt #1

Open
k1sul1 opened this issue Oct 10, 2016 · 3 comments
Open

Doesn't copy excerpt #1

k1sul1 opened this issue Oct 10, 2016 · 3 comments

Comments

@k1sul1
Copy link

k1sul1 commented Oct 10, 2016

I have this fancy native excerpt, but it didn't make it to the new post. Should be rather easy to fix.

step 1
step 2

@TeemuSuoranta
Copy link
Member

I can make this optional and to be enabled with a filter. Why not make it default? Excerpt field is by default hidden and will cause confusion if stuff is copied there and user doesn't remember to translate it.

I would recommend that when you will use excerpt copying, the excerpt field is forced to be visible. I'll look into this enhancement.

@k1sul1
Copy link
Author

k1sul1 commented Oct 10, 2016

Fine by me.

Another suggestion: if the excerpt field isn't hidden, copy the excerpt to the new post.

@romanklabal
Copy link

If you want to carry over the excerpt, it is dead simple. Add this line anywhere after $from_post_obj = get_post($from_post_id); in the copy_content_and_title() method, for example line 82.

// copy excerpt
$post->post_excerpt = $from_post_obj->post_excerpt;

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

No branches or pull requests

3 participants