Shortcoder — 모든 것에 단축코드를 생성하세요

설명

Shortcoder 플러그인을 사용하면 HTML, JavaScript, CSS 및 기타 코드 스니펫에 대한 사용자 정의 단축코드를 만들 수 있습니다. 이제 단축코드를 글/페이지에서 사용할 수 있으며, 스니펫은 자동으로 대체됩니다.

✍ 단축코드를 쉽게 생성하세요

  1. 단축코드 이름을 정하세요
  2. HTML/JavaScript/CSS를 단축코드 콘텐츠로 붙여넣으세요
  3. 저장하세요!
  4. 이제 글/페이지에 단축코드 [sc name="my_shortcode"]를 삽입하세요.
  5. 보세요! 글에 HTML/자바스크립트/CSS를 삽입하였습니다.

✨ 특징

  • 사용자 정의 단축코드를 쉽게 생성하고 단축코드가 지원되는 모든 곳에서 사용하세요.
  • HTML, Javascript, CSS를 단축코드 콘텐츠로 사용하세요.
  • 삽입: 단축코드 내 사용자 정의 매개변수
  • 삽입: 단축코드 내 워드프레스 매개변수
  • 다중 편집기: 코드, 비쥬얼 및 텍스트 모드.
  • 필요하지 않을 경우 단축코드를 전역에서 비활성화하세요.
  • 데스크톱과 모바일 기기에서 단축 코드를 비활성화하세요.
  • 글 편집기에서 삽입할 단축코드를 선택하는 버튼.
  • 단축코트 콘텐츠 내 블록 HTML을 실행하세요.
  • 구텐베르크/블록 편집기에 단축코드를 삽입하세요.

🎲 사용 예시

  1. Shortcoder 관리 페이지에서 “adsenseAd”라는 이름의 단축코드를 생성하세요.
  2. 주어진 상자에 AdSense 코드를 붙여넣고 저장하세요.
  3. 글과 페이지에 [sc name="adsenseAd"]를 사용하세요.
  4. 짜잔!!! 광고 코드가 교체되어 글에 나타납니다.
  5. 이제 한 곳에서 광고 코드를 편집하면 단축코드가 사용된 모든 위치에서 코드가 업데이트됩니다.

마찬가지로 자주 사용되는 스니펫에 대한 단축코드를 생성할 수 있습니다.

스니펫 내부에 사용자 정의 매개변수(예: %%id%%)를 추가할 수도 있고, 이를 사용할 때 해당 값을 [sc name="youtube" id="GrlRADfvjII"]처럼 변경할 수도 있습니다.

🧱 블록 에디터 사용

단축코드는 어디든지 수동으로 사용할 수 있지만, Shortcoder는 블록 편집기로 작업할 때 쉽게 생성된 단축코드를 선택하고 삽입할 수 있는 아래 옵션을 제공합니다.

  • Shortcoder 블록
  • 단축코드를 인라인으로 선택하고 삽입하기 위한 도구 표시줄 버튼 (“더 보기” 아래)

💎 PRO로 업그레이드

Shortcoder는 사용자 경험을 더욱 향상시키는 추가 기능을 갖춘 PRO 버전도 제공합니다. PRO 버전에서 제공되는 기능은 다음과 같습니다.

  • 사용자 정의 편집기 – Elementor 및 WPBakery와 같은 블록 편집기나 페이지 빌더 플러그인을 사용하여 단축코드 콘텐츠를 편집하세요.
  • (신규) WPML로 번역 – WPML로 단축코드 콘텐츠를 번역하세요.
  • 개정판 – 단축코드 콘텐츠를 위한 개정판 지원.
  • 단축코드 찾기 – 단축코드가 사용된 글과 페이지를 검색하세요.
  • 추가 코드 – 페이지에서 단축코드를 사용하는 경우 푸터에 추가 코드를 포함하세요.

Shortcoder – PRO로 시작하기

링크

스크린샷

  • Shortcoder 관리 페이지.
  • 단축코드 편집.
  • 단축코드를 선택하고 삽입하는 “단축코드 삽입” 팝업.
  • 단축코드가 글 내부에 삽입되었습니다.
  • 구텐베르크 편집기를 위한 Shortcoder 블록.
  • 글에서 Shortcoder가 실행되었습니다.
  • 블록 편집기 도구 표시줄에서 단축 코드를 인라인으로 삽입하세요.

블록

이 플러그인은 1개의 블록을 제공합니다.

  • Shortcoder

설치

  1. 압축 파일을 추출하여 Shortcoder 폴더를 /wp-content/plugins/ 디렉토리에 업로드하세요.
  2. 워드프레스의 플러그인 메뉴를 통해 플러그인을 활성화하세요.
  3. 탐색 메뉴의 “Shortcoder” 링크에서 관리자 페이지를 여세요.

FAQ

FAQ 전체 목록은 플러그인 문서 페이지에서 확인하세요.

단축코드 이름에 허용되는 문자는 무엇인가요?

허용되는 문자는 알파벳, 숫자, 하이픈, 밑줄입니다.

작동코드가 페이지 빌더에서 작동하지 않습니다!

페이지 빌더 플러그인을 확인하여 단축코드가 사용되는 블록/장소/영역에서 단축코드를 실행할 수 있는지 확인하세요. 실행 가능하다면 일반 워드프레스 단축코드처럼 단축코드가 정상적으로 작동할 겁니다.

단축코드가 작동하지 않습니다!

단축코드 내용이 인쇄되지 않거나, 출력이 예상과 다를 경우, 다음 사항을 확인해 보세요.

  • 단축 코드 콘텐츠가 출력되는지 확인해 주세요. 단축코드 콘텐츠가 출력되지 않으면 단축코드 설정에서 단축 코드 출력 위치와 시기를 제한하는 옵션이 활성화되어 있는지 확인하세요. 또한 단축코드 이름이 정확한지, 그리고 단축코드에 중복된 이름 속성이 없는지 확인하세요.
  • 단축코드가 출력되었지만 출력 결과가 예상과 다르다면, 격리된 환경에서 단축코드 콘텐츠를 시도해 보고 예상대로 작동하는지 확인해 주세요. 경우에 따라 테마와 같은 외부 요인이나 다른 플러그인이 사용 중인 단축코드 콘텐츠와 충돌할 수 있습니다.
  • 닫히지 않은 단축코드와 닫힌 단축코드가 함께 사용될 경우 단축코드 API에 알려진 제한 사항이 있습니다. 자세한 내용은 이 문서를 참조하세요.

단축코드 콘텐츠에 PHP 코드를 삽입할 수 있나요?

아니요. 현재 플러그인은 HTML, Javascript, CSS만을 단축코드 콘텐츠로 지원합니다.

Elementor, WPBakery와 같은 블록 편집기나 페이지 빌더를 사용하여 단축코드를 생성할 수 있나요?

네, 이 기능은 PRO 버전에서 사용할 수 있습니다. PRO 버전으로 업그레이드하면 사용자 정의 편집기를 사용하여 디자인하고 해당 편집기에 맞는 단축코드를 생성할 수 있습니다.

후기

2025년 6월 9일 답글 1개
Shortcoder is a game-changer for anyone who needs to reuse HTML, CSS, or JavaScript across their site! Creating shortcodes is ridiculously simple – just name it, paste your code, and you’re done. Love how it works seamlessly with both classic and Gutenberg editors. The ability to disable shortcodes globally or on specific devices is brilliant for testing. Custom parameters make it super flexible too. Whether you’re embedding complex widgets or simple HTML blocks, this plugin saves tons of time. Clean interface, reliable performance – exactly what you need for code management!
2025년 3월 16일 답글 1개
This plugin is epic and should be part of WP natively :)Shortcodes can easily be found and edited from the dashboard. No issues on latest version of WP.
2025년 1월 8일 답글 1개
Ich hatte immer Problem den eingebetteten von Videos, Facebook oder Instagram Code im ASGAROS Forum zu Platzierung bzw. Positionieren und dieses Plugin macht alles problemlos. Danke
2024년 12월 16일 답글 1개
This tool make it possible to use shortcodes in any pages and texts.
모든 224 평가 읽기

기여자 & 개발자

“Shortcoder — 모든 것에 단축코드를 생성하세요”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Shortcoder — 모든 것에 단축코드를 생성하세요”(이)가 14 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Shortcoder — 모든 것에 단축코드를 생성하세요”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

6.5.1

  • PRO: Added null checks to fix warning in some scenarios.

6.5

  • Fix: Support for WordPress 6.8.

6.4

  • New: Option to set shortcode display name next to shortcode name.
  • New: Option to execute WordPress block HTML in shortcode content.
  • Fix: Shortcoder roles are registered when plugin is activated.

6.3.2

  • Fix: Verify permissions while closing Shortcoder changelog.

6.3.1

  • Fix: Admin ajax vulnerability with nonce.

6.3

  • New: Set default value for the custom field parameters.
  • New: Custom parameter default value is shown in the insert shortcode popup.
  • Fix: Restrict access to admin-ajax calls.
  • Fix: Some admin texts were missing translation.
  • Fix: Removed the note in the insert popup for fully closed shortcode.
  • Fix: Debug comment line now has the name of the shortcode.

6.2

  • New: Option to show shortcode content in “All shortcodes” page.
  • Fix: Some texts were not translated.
  • Fix: Error in WP Bakery page builder while picking images.

6.1

  • New: Enhancements to shortcode edit screen meta boxes.
  • Fix: HTML is escaped in the editor sometimes.
  • Fix: Support for WordPress 6.1

6.0

  • New: PRO version is introduced.
  • New: Prevent same shortcode nested loop.
  • New: New actions and filters introduced.
  • Fix: Post excerpt shortcode parameter now prints full post excerpt.
  • Fix: Enhancements to input and output data sanitization.

5.8

  • New: Option to set description for the shortcode.
  • New: New actions and filters introduced.
  • Fix: Minor admin UI enhancements.

5.7

  • New: Reordered shortcode column in the “All shortcodes” page.
  • New: Option to copy shortcode directly from “All shortcodes” page.
  • New: Filter sc_mod_content to modify shortcode content before execution.
  • Fix: Shortcode won’t save if the email field in the feedback form has invalid value.
  • Fix: Custom parameter with hyphen was not highlighted in code editor.
  • Fix: Minor admin UI enhancements.

5.6

  • New: Shortcodes available to copy/insert are now closed by default.
  • Fix: Custom parameter value 0 is not displayed.
  • Fix: Support for WordPress 5.8

5.5

  • New: General settings page to configure default editor and shortcode content.
  • New: Block to insert shortcode rewritten from scratch.
  • New: Toolbar button to insert shortcodes inline.
  • New: Shortcodes are now closed by default when inserted from editor.
  • Fix: Custom fields parsing issue when they are placed next to each other.
  • Fix: Enclosed content in block input now retains multi-line.
  • Fix: Minor refinements to UI.

5.4

  • New: Code editor is now loaded locally and not from cloudflare.
  • New: Code editor now shows hints and highlights any syntax error.
  • New: Hyphens can now be used in shortcode custom parameters.
  • Fix: Handle scenario where shortcode attribute is received as a string sometimes.
  • Fix: Notice where wp_localize_script was called incorrectly.
  • Fix: Handle scenario where HTML is passed as shortcode parameter.
  • New: WordPress requirement changed from 4.4 to 4.9

5.3.4

  • New: Tested with WordPress 5.6
  • Fix: Handle warning with trim while fetching page metadata at some pages.

5.3.3

  • New: Support for post slug as the new shortcode parameter under WordPress information.
  • New: Codemirror has been updated to latest version.
  • Fix: Handle code editor loading issue when there is any collision.
  • Fix: Handle input fields which have empty id attribute.
  • Fix: Handle issue of $post object being undefined at some cases.
  • Fix: Renamed usages of __class__ to __CLASS__

5.3.2

  • New: In code editor, shortcodes will be highlighted and code editor font size is slightly bigger.

5.3.1

  • New: Code editor is now made the default editor.
  • Fix: Minor changes to admin UI.

5.3

  • New: Added support for underscores in custom parameters.
  • New: Getting ready for internationalization of the plugin.
  • Fix: Insert shortcode popup shows duplicate available parameters in case of same parameter with different case.

5.2.1

  • Fix: Custom parameters being not replaced in some scenarios.
  • Fix: Minor enhancement to insert custom parameter form.

5.2

  • New: Default values can now be provided to custom parameters.
  • Fix: Script tags, custom field placeholder and backslash being stripped after saving the shortcode sometimes.
  • Fix: Rel attribute being modified for links.
  • New: Added “Manage shortcodes” link to plugin list page for easy access after activation.

5.1

  • New: Import/Export link added to the shortcoder list page.
  • Fix: empty() was throwing error at some places for users using PHP 5.5 below as function return value was passed to it.
  • Fix: Shortcoder QTTags button was loading in frontends.
  • Fix: “Insert shortcode” popup was hidden behind in theme customizer page.
  • Fix: array_key_exists array but bool given warning.
  • Fix: Hide comments metabox in shortcode edit page as it was shown in certain conditions.

5.0.4

  • Fix: script and style tags stripped after 4.x upgrade. New migration will run in this version and shortcode content will now be fixed.

5.0.3

  • Fix: Shortcode content is not escaped when code editor is used. This is requirement because post_content behaves strangely when user has rich editing enabled.

5.0.2

  • Fix: Shortcodes inside shortcode content not getting executed.
  • Fix: Disable Gutenberg block for older not supported WordPress versions.

5.0.1

  • Fix: Code editor escaping HTML characters.
  • Fix: get_current_screen() undefined.
  • Fix: Code editor breaks if there is any other plugin which loads codemirror.
  • Fix: tools.php is not found.

5.0

  • New: Brand new version. Plugin rewritten from scratch.
  • New: Shortcoder block for the block editor.

4.4

  • New: Insert shortcode automatically adds “closing tag” if the shortcode has enclosed content parameter.
  • Fix: Codemirror has been updated to latest version.

4.3

  • New: Edit shortcode name after creating.
  • New: Post modified date parameter added.
  • Fix: Date parameters now display in site language.

4.2

  • Fix: Some plugins fail to fire onload JS event since it was overwritten by shortcoder.
  • Fix: Javascript in insert shortcode popup not working in IE 11.
  • Fix: Missing parenthesis while calling is_year.
  • Fix: Widgets page not loading insert shortcode popup.
  • Fix: Removed settings emoji icon from plugin actions list.
  • Fix: Load latest version 5.42.0 of codemirror.
  • Fix: Updated minimum required WordPress version.

4.1.9

  • Fix: Minor UI refinements for better experience.
  • Fix: Import error where some exported JSON files have 0 as EOF.

4.1.8

  • New: Insert custom fields in shortcode content.
  • Fix: Removed comments in shortcode output

4.1.7

  • New: Categorize, search and filter shortcodes using “tags”.
  • New: Last used shortcode editor will be saved along with shortcode.
  • New: Enclosed shortcode content can now be used as shortcode parameter.
  • New: Active line highlight has been enabled for code editor.
  • Fix: Codemirror has been updated to latest version.
  • Fix: Minor admin interface enhancements.

4.1.6

  • New: Date variables can noe be added into shortcode content.
  • Fix: Error “trying to get property of non-object” is handled.

4.1.5

  • New: Bloginfo variables can now be added into shortcode content.

4.1.4

  • New: Codemirror powered syntax highlighted shortcode content code editor (beta).

4.1.3

  • Fix: Shortcode names with not-allowed characters cannot be edited/deleted.
  • New: Shortcode imports made can now be fresh or overwritten.
  • New: Only users with manage_options capability will see “edit shortcode” option in insert window.
  • Fix: Import failure with UTF-8 characters.
  • Fix: Case sensitive search in admin pages.
  • Fix: Minor admin interface changes.

4.1.2

  • New: Search box for shortcodes in admin page.

4.1.1

  • Fix: HTTP 500 error because of syntax error in import module.

4.1

  • New: Import/export feature for shortcodes.
  • Fix: Visual editor is now disabled by default.
  • Fix: Added instructions in admin page.

4.0.3

  • New: Added feature to sort created shortcodes list.
  • Fix: HTML errors in admin page

4.0.2

  • Fix: Sometimes get_current_screen() was called early in some setups.

4.0.1

  • Fix: Servers with PHP version < 5.5 were facing HTTP 500 error because of misuse of PHP language construct in code.

4.0

  • New: Plugin rewritten from scratch.
  • New: Brand new administration page
  • New: Shortcode visibility settings, show/hide in desktop/mobile devices
  • New: Insert WordPress information into shortcode content.
  • Fix: Insert shortcode window is not loading.
  • Fix: Unable to delete the shortcodes

(Older change logs are removed from this list)