Title: Shortcode Empty Paragraph Fix
Author: Johann Heyne
Published: <strong>2011년 7월 10일</strong>
Last modified: 2016년 1월 22일

---

플러그인 검색

이 플러그인은 **최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다**. 워드프레스의
좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 
있을 수 있습니다.

![](https://s.w.org/plugins/geopattern-icon/shortcode-empty-paragraph-fix.svg)

# Shortcode Empty Paragraph Fix

 작성자: [Johann Heyne](https://profiles.wordpress.org/jonua/)

[다운로드](https://downloads.wordpress.org/plugin/shortcode-empty-paragraph-fix.zip)

 * [세부사항](https://ko.wordpress.org/plugins/shortcode-empty-paragraph-fix/#description)
 * [평가](https://ko.wordpress.org/plugins/shortcode-empty-paragraph-fix/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/shortcode-empty-paragraph-fix/#installation)
 * [개발](https://ko.wordpress.org/plugins/shortcode-empty-paragraph-fix/#developers)

 [지원](https://wordpress.org/support/plugin/shortcode-empty-paragraph-fix/)

## 설명

Fix [known issues](https://core.trac.wordpress.org/ticket/12061) when shortcodes
are embedded in a block of content that is filtered by wpautop.

#### for Theme Developers

If you are developing a theme to provide this on a marketplace, you better embed
the following code in your functions.php. This code filters only the shortcodes 
you defined. Otherwise you risk a failed review because the code in the plugin filters
content in general which may is not acceptet.

    ```
    function shortcode_empty_paragraph_fix( $content ) {

        // define your shortcodes to filter, '' filters all shortcodes
        $shortcodes = array( 'your_shortcode_1', 'your_shortcode_2' );

        foreach ( $shortcodes as $shortcode ) {

            $array = array (
                '<p>[' . $shortcode => '[' .$shortcode,
                '<p>[/' . $shortcode => '[/' .$shortcode,
                $shortcode . ']</p>' => $shortcode . ']',
                $shortcode . ']<br />' => $shortcode . ']'
            );

            $content = strtr( $content, $array );
        }

        return $content;
    }

    add_filter( 'the_content', 'shortcode_empty_paragraph_fix' );
    ```

Another solution that is acceptet at the envato (themeforest) marketplace comes 
from [bitfade](https://gist.github.com/bitfade/4555047).

## 설치

 1. Upload folder `shortcode-empty-paragraph-fix` to the `/wp-content/plugins/` directory
 2. 워드프레스의 ‘플러그인’ 메뉴에서 플러그인을 활성화하세요.

또는

If you dont want to use a whole plugin to solve that bug, you can copy the code 
of the plugin file shortcode-empty-paragraph-fix.php into your theme function.php

## FAQ

  Installation Instructions

 1. Upload folder `shortcode-empty-paragraph-fix` to the `/wp-content/plugins/` directory
 2. 워드프레스의 ‘플러그인’ 메뉴에서 플러그인을 활성화하세요.

또는

If you dont want to use a whole plugin to solve that bug, you can copy the code 
of the plugin file shortcode-empty-paragraph-fix.php into your theme function.php

## 후기

![](https://secure.gravatar.com/avatar/0fdcb3c1f606e84db3d801ef61e200a3a38bc6da0d78fbb8393f9a1957610280?
s=60&d=retro&r=g)

### 󠀁[Just what I needed.](https://wordpress.org/support/topic/just-what-i-needed-646/)󠁿

 [](https://profiles.wordpress.org/truetone/) 2017년 10월 5일

Thanks for this fix. Worked great for me!

![](https://secure.gravatar.com/avatar/d952305e451542b406e068990c629ea7eafcbde0641f4c2a438501f1ba5b79bc?
s=60&d=retro&r=g)

### 󠀁[Thanks! It solves my issue](https://wordpress.org/support/topic/thanks-it-solves-my-issue/)󠁿

 [Elisabeth Pointal](https://profiles.wordpress.org/epointal/) 2017년 7월 14일

This simply plugin resolve the issue in mine. I added the function and filter to
my own plugin if it did not already exist.

![](https://secure.gravatar.com/avatar/8df1cc227b62b6dfb9bf9a3785b19ed671d50c4ff028f36e70df22302787777b?
s=60&d=retro&r=g)

### 󠀁[It’s work](https://wordpress.org/support/topic/its-work-11/)󠁿

 [studio-jt](https://profiles.wordpress.org/studiojt/) 2017년 2월 2일

The standalone function work great , thank you

 [ 모든 21 평가 읽기 ](https://wordpress.org/support/plugin/shortcode-empty-paragraph-fix/reviews/)

## 기여자 & 개발자

“Shortcode Empty Paragraph Fix”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이
이 플러그인에 기여하였습니다.

기여자

 *   [ Johann Heyne ](https://profiles.wordpress.org/jonua/)

[자국어로 “Shortcode Empty Paragraph Fix”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/shortcode-empty-paragraph-fix)

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

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/shortcode-empty-paragraph-fix/)
는, [SVN 저장소](https://plugins.svn.wordpress.org/shortcode-empty-paragraph-fix/)
를 확인하시거나, [개발 기록](https://plugins.trac.wordpress.org/log/shortcode-empty-paragraph-fix/)
을 [RSS](https://plugins.trac.wordpress.org/log/shortcode-empty-paragraph-fix/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

#### 0.1

 * 초기 릴리즈

#### 0.2

 * nicer code writing style

## 기초

 *  버전 **0.2**
 *  최근 업데이트: **10년 전**
 *  활성화된 설치 **800+**
 *  워드프레스 버전 ** 2.5 또는 그 이상 **
 *  다음까지 시험됨: **4.8.28**
 *  언어
 * [English (US)](https://wordpress.org/plugins/shortcode-empty-paragraph-fix/)
 * 태그:
 * [fix](https://ko.wordpress.org/plugins/tags/fix/)[shortcode](https://ko.wordpress.org/plugins/tags/shortcode/)
 *  [고급 보기](https://ko.wordpress.org/plugins/shortcode-empty-paragraph-fix/advanced/)

## 평점

 별 5점 만점에 4.8점.

 *  [  19/5-별점 후기     ](https://wordpress.org/support/plugin/shortcode-empty-paragraph-fix/reviews/?filter=5)
 *  [  0/4-별점 후기     ](https://wordpress.org/support/plugin/shortcode-empty-paragraph-fix/reviews/?filter=4)
 *  [  0/3-별점 후기     ](https://wordpress.org/support/plugin/shortcode-empty-paragraph-fix/reviews/?filter=3)
 *  [  0/2-별점 후기     ](https://wordpress.org/support/plugin/shortcode-empty-paragraph-fix/reviews/?filter=2)
 *  [  1/1-별점 후기     ](https://wordpress.org/support/plugin/shortcode-empty-paragraph-fix/reviews/?filter=1)

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

[모든  리뷰 보기](https://wordpress.org/support/plugin/shortcode-empty-paragraph-fix/reviews/)

## 기여자

 *   [ Johann Heyne ](https://profiles.wordpress.org/jonua/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/shortcode-empty-paragraph-fix/)