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 iw_default_author for the h-card #9

Open
asuh opened this issue Jun 18, 2024 · 1 comment
Open

Use iw_default_author for the h-card #9

asuh opened this issue Jun 18, 2024 · 1 comment

Comments

@asuh
Copy link
Owner

asuh commented Jun 18, 2024

Right now, the representative .h-card component is using get_the_author_meta() to grab the default author data to apply it to the card. There's no logic to distinguish for post authors and representative h-card authors.

Here's an example: https://github.com/dshanske/iw26/blob/trunk/template-parts/biography.php

The Indieweb plugin offers iw_default_author data and it would make more sense to use this for the default for the repreentative h-card, especially when there could be more than one author.

Luckily, Indieweb plugin states that it'll always default to a specific user who has made a post, as long as no other users or profiles have made posts.

Once this work is completed, I need to test this is compatible with the IndieBlocks plugin for Gutenberg support.

@asuh
Copy link
Owner Author

asuh commented Jun 19, 2024

I think the logic is updated to support most of this.

98386d5

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

1 participant