Skip to content

Preserve WordPress post ids as frontmatter metadata #95

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

Closed
LeaVerou opened this issue Jul 8, 2023 · 3 comments
Closed

Preserve WordPress post ids as frontmatter metadata #95

LeaVerou opened this issue Jul 8, 2023 · 3 comments

Comments

@LeaVerou
Copy link

LeaVerou commented Jul 8, 2023

Please consider preserving WordPress’s post ids as frontmatter metadata. Disqus (and potentially other systems) uses them to create unique identifiers to associate its threads with WP posts, so it would make preserving Disqus comments trivial.

It could be a key like wp_id to make the purpose clear. Perhaps it could be opt-in?

@wanghaisheng
Copy link

@LeaVerou did you fix this

@LeaVerou
Copy link
Author

LeaVerou commented Aug 3, 2023

Νο, I extracted the post ids as a separate 11ty data file and add the post id on runtime, see: https://lea.verou.me/blog/2023/preserve-disqus/

@lonekorean
Copy link
Owner

Frontmatter handling has been rearchitected, you can now customize which frontmatter fields are included by editing frontmatter_fields in settings.js.

Additionally, a frontmatter getter for ID was added in v2.3.1 so it's ready to use 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

3 participants