| 开发者 | writerspress |
|---|---|
| 更新时间 | 2026年5月27日 01:44 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Inside a published post, the citation is built from that post's metadata: title, publish year, post URL, site name, and the post author (or the name set on the box, if one is provided). Outside of a post context — on a page, a widget, an archive — it falls back to the site name, current URL, and current year. Pass post_id to the shortcode to point at a specific post.
Yes. Use the shortcode with the post_id attribute, e.g. [author_box post_id="123"]. The citation and avatar fallback will use post 123's metadata.
No. The CSS uses Fraunces, Inter Tight, and JetBrains Mono with sensible fallbacks (Georgia, system sans-serif, ui-monospace). Your theme controls font loading. If you want the exact look, load those three from Google Fonts or self-host them in your theme.
No. The CSS and JavaScript are registered on init but only enqueued on pages where a box is actually rendered.
image_id shortcode attribute for direct media-library references.post_id shortcode attribute for rendering against a specific post.<img> tags.