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

Obsidian-wordpress deletes Obsidian note frontmatter on publishing #71

Open
OneRadRedDad opened this issue Feb 1, 2024 · 4 comments
Open

Comments

@OneRadRedDad
Copy link

What Happens

If I use the Wordpress publish button in Obsidian's sidebar to publish a note, my frontmatter notes are replaced with frontmatter generated by Obsidian-wordpress.

What I Expect to Happen

I expect Obsidian-wordpress to append its generated frontmatter to the end of what I already have in the document.

Workflow to reproduce this issue:

  1. Open Obsidian.md
  2. Navigate to any obsidian note with frontmatter in the publisher
Frontmatter example:
---
ImportedOn: Saturday, 18 December 2021 8:41:47 PM
Tags: Category/Mundane-Item
---
  1. Click the Wordpress button in the Obisidan sidebar
  2. Click Publish

The note then then loses its existing Frontmatter and gains the following:

postId: 20
postType: post
categories:
  - 1
---
@antonvh
Copy link

antonvh commented Feb 17, 2024

Yes. I have the same problem! I prefer to have YAML data merged instead of replaced, because I use the metadata for more than wordpress info. At least the option to not update the metadata should be nice.

Can you point me to the bit of code that reads and replace the frontmatter metadata? Maybe I can try to fix it in a PR. I would also like to add seo snippet and keyphrase through this plugin.

Great plugin, though!

@ianbetteridge
Copy link

Same problem here too, which is a pain as I use templates and front matter to automatically move content around folders in Obsidian.

@alexture
Copy link

Same issue here, it's my main pain point with this otherwise amazing extension. :)

@pawel-domanski
Copy link

I have the same issue :(

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