Title: Credits Shortcode &amp; Block
Author: jashjacob
Published: <strong>অক্টোবর 2, 2014</strong>
Last modified: অগাস্ট 28, 2026

---

Search plugins

![](https://ps.w.org/source-shortcode/assets/banner-772x250.png?rev=3671249)

![](https://ps.w.org/source-shortcode/assets/icon-256x256.png?rev=3671249)

# Credits Shortcode & Block

 By [jashjacob](https://profiles.wordpress.org/jashjacob/)

[Download](https://downloads.wordpress.org/plugin/source-shortcode.1.4.0.zip)

 * [Details](https://bn-in.wordpress.org/plugins/source-shortcode/#description)
 * [Reviews](https://bn-in.wordpress.org/plugins/source-shortcode/#reviews)
 *  [Installation](https://bn-in.wordpress.org/plugins/source-shortcode/#installation)
 * [Development](https://bn-in.wordpress.org/plugins/source-shortcode/#developers)

 [Support](https://wordpress.org/support/plugin/source-shortcode/)

## Description

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:

 * `name` — the attribution name to display. Defaults to the shortcode’s inner content.
 * `link` — the URL the credit links to (escaped with `esc_url()`).
 * `source` — an optional secondary label shown alongside the name.
 * `type` — `source` or `via` badge prefix.
 * `badge_color`, `link_color`, `link_text_color` — hex color overrides for the 
   accent styling.

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.

## Screenshots

[⌊The credit line rendered on the frontend.⌉⌊The credit line rendered on the frontend
.⌉[

The credit line rendered on the frontend.

[⌊Gutenberg block settings in the editor sidebar.⌉⌊Gutenberg block settings in the
editor sidebar.⌉[

Gutenberg block settings in the editor sidebar.

## Blocks

This plugin provides 1 block.

 *   Credits Link Insert Source or Via credit link into your post with customizable
   accent colors.

## Installation

 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.

## FAQ

### 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.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Credits Shortcode & Block” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ jashjacob ](https://profiles.wordpress.org/jashjacob/)

[Translate “Credits Shortcode & Block” into your language.](https://translate.wordpress.org/projects/wp-plugins/source-shortcode)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/source-shortcode/),
check out the [SVN repository](https://plugins.svn.wordpress.org/source-shortcode/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/source-shortcode/)
by [RSS](https://plugins.trac.wordpress.org/log/source-shortcode/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.4.0

 * Added internationalization (i18n) support — all strings now use the `credits-
   shortcode` text domain; translators welcome.
 * The Gutenberg block is now registered from `block.json` metadata with `apiVersion
   3`.
 * Version is now maintained from a single source of truth in the main plugin file.
 * Added a PHPUnit test suite (32 tests) running in continuous integration.
 * Neutral, theme-friendly default styling: the badge no longer forces brand colors
   or italics; accent colors are opt-in and links inherit your theme’s link color.
   Existing blocks keep their saved colors.
 * New Settings -> Credits page: store site-wide default credit type and accent 
   colors (saved via the Settings API with hex validation); shortcodes and blocks
   without explicit values use them. Settings are removed on uninstall.

#### 1.3.1

 * Sanitize attributes on input (`esc_url_raw`, `sanitize_text_field`, `sanitize_key`,`
   sanitize_hex_color`).
 * Escape only when building output: `esc_url()` for href, `esc_html()` for text,`
   esc_attr( safecss_filter_attr() )` for inline CSS.
 * Restrict accent colors to hex values and run the final markup through `wp_kses()`.

#### 1.3

 * Added native Gutenberg Block support (`credits/shortcode`).
 * Added custom Accent Color Pickers in the Block Editor sidebar and shortcodes.
 * Added micro-interaction hover lift animations and smooth CSS transitions.
 * Fixed Stored XSS vulnerability (CVE-2026-6256).

#### 1.2

 * Initial public release with Classic Editor support.

## Meta

 *  Version **1.4.0**
 *  Last updated **2 days ago**
 *  Active installations **10+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **7.1**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/source-shortcode/)
 * Tags
 * [block](https://bn-in.wordpress.org/plugins/tags/block/)[credits](https://bn-in.wordpress.org/plugins/tags/credits/)
   [shortcode](https://bn-in.wordpress.org/plugins/tags/shortcode/)[source](https://bn-in.wordpress.org/plugins/tags/source/)
   [via](https://bn-in.wordpress.org/plugins/tags/via/)
 *  [Advanced View](https://bn-in.wordpress.org/plugins/source-shortcode/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/source-shortcode/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/source-shortcode/reviews/)

## Contributors

 *   [ jashjacob ](https://profiles.wordpress.org/jashjacob/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/source-shortcode/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://jashjacob.com)