Linux 软件免费装
Banner图

Credits Shortcode & Block

开发者 jashjacob
更新时间 2026年8月29日 16:14
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

shortcode block source credits via attribution

下载

1.4.0 1.3 1.3.1

详情介绍:

Credits Shortcode & Block allows content creators to easily add formatted "Source" or "Via" attribution credit lines to WordPress posts and pages. Supports the modern Gutenberg Block Editor (with live preview, customizable accent color pickers, and sidebar controls), traditional shortcodes, and legacy Classic Editor toolbar buttons. Shortcode Usage Basic Source attribution: [credits link="https://example.com"]Source Name[/credits] Via attribution: [credits link="https://example.com" type="via"]Via Name[/credits] With a name attribute (instead of wrapped text): [credits name="TechZei" link="https://example.com"] Full set of attributes: Example with custom colors: [credits link="https://example.com" type="source" badge_color="#0073aa" link_color="#f0f0f0" link_text_color="#0073aa"]Source Name[/credits] Block Usage
  1. In the WordPress Block Editor, click + or type /credits to insert the Credits Link block (credits/shortcode).
  2. Set the Credit Type (Source/Via), attribution name, and Link URL in the block sidebar.
  3. Optionally expand Accent Color Settings to customize the badge background, link background, and link text colors.
The block renders live in the editor and adapts to modern block themes so the credit line sits flush with paragraph content.

安装:

  1. In your WordPress admin, go to Plugins > Add New.
  2. Search for "Credits Shortcode & Block".
  3. Click Install Now, then Activate.
Manual installation:
  1. Download the plugin from WordPress.org (or this repository) as a .zip file.
  2. Go to Plugins > Add New > Upload Plugin and choose the .zip, or upload the extracted credits-shortcode folder to your /wp-content/plugins/ directory via FTP/SFTP.
  3. Activate the plugin through the Plugins menu in WordPress.

屏幕截图:

  • Gutenberg block settings in the editor sidebar.

升级注意事项:

1.4.0 Adds translations support, block.json metadata registration (apiVersion 3), and an automated test suite. No breaking changes for existing shortcodes or blocks.

常见问题:

Can I change how the credit line looks?

Yes. Use the Accent Color Settings in the block sidebar, the color attributes on the shortcode, or override the CSS classes (.cre_cate, .cre_cate_link) in Appearance > Customize > Additional CSS. The plugin enqueues minimal default styles that are easy to override.

Can I add multiple credits per post?

Yes. Insert multiple blocks or shortcodes anywhere in a post or page — each one renders its own independent credit line, so you can list several sources.

What happens if I deactivate the plugin?

Shortcode output stops being rendered, so existing [credits] tags will appear as plain text inside your post content. Your posts are not modified; simply re-activate the plugin to restore the rendered credit lines.

How do I change the colors?

Per-instance colors can be set with the badge_color, link_color, and link_text_color attributes (hex values) or via the block sidebar color pickers. Site-wide defaults can be overridden with custom CSS targeting the same classes.

Does it add rel="nofollow" to the links?

No, links use standard anchor markup with escaped URLs. If you need nofollow for SEO reasons, you can filter the output with your own markup filter or use a third-party link-management plugin; the credit line is plain HTML so any standard link-filtering plugin will apply to it.

更新日志:

1.4.0 1.3.1 1.3 1.2