{"id":26027,"date":"2014-10-02T14:47:09","date_gmt":"2014-10-02T14:47:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/source-shortcode\/"},"modified":"2026-09-17T03:07:40","modified_gmt":"2026-09-17T03:07:40","slug":"source-shortcode","status":"publish","type":"plugin","link":"https:\/\/sw.wordpress.org\/plugins\/source-shortcode\/","author":9448965,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.5.0","stable_tag":"1.5.0","tested":"7.1.1","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"Credits Shortcode & Block","header_author":"Jash Jacob","header_description":"","assets_banners_color":"c2bdb6","last_updated":"2026-09-17 03:07:40","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/jashjacob.com","header_plugin_uri":"https:\/\/github.com\/jashjacob\/Credits-Shortcode-Plugin-for-Wordpress","header_author_uri":"https:\/\/jashjacob.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1908,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.3":{"tag":"1.3","author":"jashjacob","date":"2026-08-07 09:41:37","revision":3637660},"1.3.1":{"tag":"1.3.1","author":"jashjacob","date":"2026-08-14 14:13:47","revision":3647536},"1.4.0":{"tag":"1.4.0","author":"jashjacob","date":"2026-08-28 10:20:38","revision":3670145},"1.4.1":{"tag":"1.4.1","author":"jashjacob","date":"2026-09-17 02:19:19","revision":3699445},"1.5.0":{"tag":"1.5.0","author":"jashjacob","date":"2026-09-17 03:07:40","revision":3699464}},"upgrade_notice":{"1.5.0":"<p>Adds configurable spacing for stacked credits. Existing blocks and shortcodes keep the Standard spacing unless you choose another preset.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3699445,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3699445,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3699445,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3699445,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":{"credits\/shortcode":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"credits\/shortcode","version":"1.5.0","title":"Credits Link","category":"widgets","icon":"share","description":"Insert Source or Via credit link into your post with customizable accent colors.","keywords":["credits","source","via","attribution","color"],"textdomain":"credits-shortcode","attributes":{"link":{"type":"string","default":"#"},"type":{"type":"string","default":""},"spacing":{"type":"string","default":""},"name":{"type":"string","default":""},"badgeColor":{"type":"string","default":""},"linkColor":{"type":"string","default":""},"linkTextColor":{"type":"string","default":""}},"editorScript":"credits-block-js","editorStyle":"credits-shortcode","style":"credits-shortcode"}},"tagged_versions":["1.3","1.3.1","1.4.0","1.4.1","1.5.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3699445,"resolution":"1","location":"assets","locale":"","width":1024,"height":483},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3699445,"resolution":"2","location":"assets","locale":"","width":506,"height":1024}},"screenshots":{"1":"A Source or Via attribution rendered on the front end.","2":"Credits Link settings in the Gutenberg block sidebar."}},"plugin_section":[],"plugin_tags":[9067,1220,6265,80,8747],"plugin_category":[43],"plugin_contributors":[95483],"plugin_business_model":[],"class_list":["post-26027","plugin","type-plugin","status-publish","hentry","plugin_tags-attribution","plugin_tags-block","plugin_tags-credits","plugin_tags-shortcode","plugin_tags-source","plugin_category-customization","plugin_contributors-jashjacob","plugin_committers-jashjacob"],"banners":{"banner":"https:\/\/ps.w.org\/source-shortcode\/assets\/banner-772x250.png?rev=3699445","banner_2x":"https:\/\/ps.w.org\/source-shortcode\/assets\/banner-1544x500.png?rev=3699445","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/source-shortcode\/assets\/icon-128x128.png?rev=3699445","icon_2x":"https:\/\/ps.w.org\/source-shortcode\/assets\/icon-256x256.png?rev=3699445","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/source-shortcode\/assets\/screenshot-1.png?rev=3699445","caption":"A Source or Via attribution rendered on the front end."},{"src":"https:\/\/ps.w.org\/source-shortcode\/assets\/screenshot-2.png?rev=3699445","caption":"Credits Link settings in the Gutenberg block sidebar."}],"raw_content":"<!--section=description-->\n<p>Give readers a clear path back to the original source. Credits Shortcode &amp; Block adds compact, theme-friendly Source or Via attribution links to WordPress posts and pages.<\/p>\n\n<h4>Highlights<\/h4>\n\n<ul>\n<li>Native Gutenberg block with a live editor preview.<\/li>\n<li>Simple <code>[credits]<\/code> shortcode for any post, page, or widget area.<\/li>\n<li>Site-wide defaults under Settings &gt; Credits.<\/li>\n<li>Optional colors for the badge, link background, and link text.<\/li>\n<li>Compact, standard, or spacious gaps between consecutive credits.<\/li>\n<li>Classic Editor toolbar button for legacy workflows.<\/li>\n<li>Responsive, theme-friendly output with subtle hover feedback.<\/li>\n<li>Translation-ready and compatible with WordPress multisite.<\/li>\n<li>No external service, account, tracking, or front-end JavaScript.<\/li>\n<\/ul>\n\n<h4>Gutenberg Block<\/h4>\n\n<ol>\n<li>Open a post or page in the Block Editor.<\/li>\n<li>Add the <strong>Credits Link<\/strong> block by clicking <strong>+<\/strong> or typing <code>\/credits<\/code>.<\/li>\n<li>Choose Source or Via, enter the attribution name, and add its URL.<\/li>\n<li>Optionally choose accent colors in the block sidebar.<\/li>\n<\/ol>\n\n<p>The block is rendered dynamically, so saved content stays clean and current.<\/p>\n\n<h4>Shortcode<\/h4>\n\n<p>Basic source attribution:<\/p>\n\n<pre><code>[credits link=\"https:\/\/example.com\"]Source Name[\/credits]\n<\/code><\/pre>\n\n<p>Via attribution:<\/p>\n\n<pre><code>[credits link=\"https:\/\/example.com\" type=\"via\"]Publication Name[\/credits]\n<\/code><\/pre>\n\n<p>Using a name attribute:<\/p>\n\n<pre><code>[credits name=\"Source Name\" link=\"https:\/\/example.com\"]\n<\/code><\/pre>\n\n<p>Custom colors:<\/p>\n\n<pre><code>[credits link=\"https:\/\/example.com\" type=\"source\" badge_color=\"#0073aa\" link_color=\"#f0f0f0\" link_text_color=\"#0073aa\"]Source Name[\/credits]\n<\/code><\/pre>\n\n<p>Supported attributes:<\/p>\n\n<ul>\n<li><code>name<\/code> - attribution text; inner shortcode content takes precedence.<\/li>\n<li><code>link<\/code> - destination URL.<\/li>\n<li><code>type<\/code> - <code>source<\/code> or <code>via<\/code>.<\/li>\n<li><code>badge_color<\/code> - badge background as a 3- or 6-digit hex color.<\/li>\n<li><code>link_color<\/code> - link area background as a 3- or 6-digit hex color.<\/li>\n<li><code>link_text_color<\/code> - link text as a 3- or 6-digit hex color.<\/li>\n<li><code>spacing<\/code> - <code>compact<\/code>, <code>standard<\/code>, or <code>spacious<\/code>; defaults to the site-wide setting.<\/li>\n<\/ul>\n\n<p>To keep several credits close together:<\/p>\n\n<pre><code>[credits link=\"https:\/\/example.com\" spacing=\"compact\"]Source Name[\/credits]\n<\/code><\/pre>\n\n<h4>Site-wide Defaults<\/h4>\n\n<p>Go to <strong>Settings &gt; Credits<\/strong> to choose the default credit type, spacing, and optional accent colors. Individual blocks and shortcodes can override those defaults.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>In WordPress, go to <strong>Plugins &gt; Add New<\/strong>.<\/li>\n<li>Search for <strong>Credits Shortcode &amp; Block<\/strong>.<\/li>\n<li>Click <strong>Install Now<\/strong>, then <strong>Activate<\/strong>.<\/li>\n<li>Add a Credits Link block, use the <code>[credits]<\/code> shortcode, or configure defaults under <strong>Settings &gt; Credits<\/strong>.<\/li>\n<\/ol>\n\n<p>For a manual installation, upload the plugin folder to <code>\/wp-content\/plugins\/<\/code> and activate it from the Plugins screen.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"can%20i%20change%20how%20the%20credit%20line%20looks%3F\"><h3>Can I change how the credit line looks?<\/h3><\/dt>\n<dd><p>Yes. Set colors for an individual block or shortcode, configure site-wide defaults under Settings &gt; Credits, or use custom CSS. Without custom colors, the plugin uses neutral styling that inherits the active theme's link color.<\/p><\/dd>\n<dt id=\"can%20i%20add%20more%20than%20one%20credit%20to%20a%20post%3F\"><h3>Can I add more than one credit to a post?<\/h3><\/dt>\n<dd><p>Yes. Add as many blocks or shortcodes as needed. Each credit is rendered independently.<\/p><\/dd>\n<dt id=\"what%20happens%20if%20i%20deactivate%20the%20plugin%3F\"><h3>What happens if I deactivate the plugin?<\/h3><\/dt>\n<dd><p>Your posts are not modified or deleted. Dynamic blocks stop rendering, and shortcode tags remain in post content until the plugin is reactivated.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20send%20data%20to%20another%20service%3F\"><h3>Does the plugin send data to another service?<\/h3><\/dt>\n<dd><p>No. The plugin makes no external requests and includes no analytics or tracking.<\/p><\/dd>\n<dt id=\"does%20it%20add%20rel%3D%22nofollow%22%20to%20links%3F\"><h3>Does it add rel=\"nofollow\" to links?<\/h3><\/dt>\n<dd><p>No. Credit links open in a new tab with <code>noopener noreferrer<\/code>. The plugin does not add <code>nofollow<\/code> automatically.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20the%20classic%20editor%3F\"><h3>Does it work with the Classic Editor?<\/h3><\/dt>\n<dd><p>Yes. When the Classic Editor is active, an Add Credits toolbar button inserts the shortcode for you.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.5.0<\/h4>\n\n<ul>\n<li>Added site-wide spacing defaults under Settings &gt; Credits.<\/li>\n<li>Added Compact, Standard, and Spacious spacing presets for each block or shortcode.<\/li>\n<li>Added spacing inheritance and validation tests.<\/li>\n<\/ul>\n\n<h4>1.4.1<\/h4>\n\n<ul>\n<li>Fixed Gutenberg block registration on WordPress 5.0 through 5.4.<\/li>\n<li>Fixed new blocks so they inherit the site-wide default credit type.<\/li>\n<li>Added block-editor JavaScript translation loading.<\/li>\n<li>Refreshed the WordPress.org banner, icons, and screenshots.<\/li>\n<li>Improved directory copy and release metadata.<\/li>\n<\/ul>\n\n<h4>1.4.0<\/h4>\n\n<ul>\n<li>Added internationalization support for PHP and block-editor strings.<\/li>\n<li>Registered the block from <code>block.json<\/code> metadata on supported WordPress versions.<\/li>\n<li>Added site-wide defaults under Settings &gt; Credits.<\/li>\n<li>Added a PHPUnit test suite and PHP 7.4 through 8.4 continuous integration.<\/li>\n<li>Switched to neutral, theme-friendly default styling while preserving saved colors.<\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>Sanitized shortcode attributes and applied context-aware escaping to rendered output.<\/li>\n<li>Restricted accent colors to valid hex values.<\/li>\n<li>Added a strict HTML allowlist for final shortcode markup.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Added the native Credits Link Gutenberg block.<\/li>\n<li>Added per-credit accent color controls.<\/li>\n<li>Added hover feedback and block-theme layout compatibility.<\/li>\n<li>Hardened shortcode rendering and output escaping.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Initial public release with shortcode and Classic Editor support.<\/li>\n<\/ul>","raw_excerpt":"Add clean Source and Via attribution links with a Gutenberg block, shortcode, or Classic Editor button.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/26027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=26027"}],"author":[{"embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jashjacob"}],"wp:attachment":[{"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=26027"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=26027"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=26027"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=26027"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=26027"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=26027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}