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

Use first line as excerpt #200

Open
xurxodiz opened this issue Feb 14, 2025 · 2 comments
Open

Use first line as excerpt #200

xurxodiz opened this issue Feb 14, 2025 · 2 comments

Comments

@xurxodiz
Copy link

Add an option to automatically set as excerpt the first line (after title, so second total) of the post.

@akirk
Copy link
Owner

akirk commented Feb 14, 2025

Do you think it would also be an option to get this functionality for yourself using your own plugin? I think we could add a hook to https://github.com/akirk/enable-mastodon-apps/blob/main/includes/handler/class-status.php#L263

@xurxodiz
Copy link
Author

Sure, people could just add some callback in functions.php that, after being passed $post_data['post_content'], returns the desired excerpt. But don't you think it could be a generally useful option to provide out-of-the-box?

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

2 participants