Title: Shortcode Empty Paragraph Fix
Author: Johann Heyne
Published: <strong>જુલાઇ 10, 2011</strong>
Last modified: જાન્યુઆરી 22, 2016

---

પ્લગીન શોધો

આ પલ્ગઇન ** 2 વર્ષથી વધુમાં અપડેટ કરવામાં આવ્યો નથી **. એ કદાચ જાળવવામાં અથવા સપોર્ટેડ
નહી હોય. વર્ડપ્રેસ ના વધુ તાજેતરનાં સંસ્કરણો સાથે ઉપયોગમાં લેવાય તો સુસંગતતા મુદ્દાઓ
હોઈ શકે છે.

![](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://gu.wordpress.org/plugins/shortcode-empty-paragraph-fix/#description)
 * [સમીક્ષાઓ](https://gu.wordpress.org/plugins/shortcode-empty-paragraph-fix/#reviews)
 *  [સ્થાપન](https://gu.wordpress.org/plugins/shortcode-empty-paragraph-fix/#installation)
 * [ડેવલપમેન્ટ](https://gu.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. Activate the plugin through the ‘Plugins’ menu in WordPress

or

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. Activate the plugin through the ‘Plugins’ menu in WordPress

or

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/) ઓક્ટોબર 5, 2017

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/) જુલાઇ 14, 2017

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/) ફેબ્રુવારી 2, 2017

The standalone function work great , thank you

 [ 21 સમીક્ષાઓ વાંચો ](https://wordpress.org/support/plugin/shortcode-empty-paragraph-fix/reviews/)

## ફાળો આપનાર & ડેવલપર્સ

આ ઓપન સોર્સ સોફ્ટવેર છે. નીચેના લોકો એ આ પ્લગિન માટે ફાળો આપ્યો છે.

ફાળો આપનારા

 *   [ 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/),
જોવો[અસ્વીએન રેપોઝિટરીમાંથી](https://plugins.svn.wordpress.org/shortcode-empty-paragraph-fix/),
અથવા સબ્સ્ક્રાઇબ કરો[ડેવલપમેન્ટ](https://plugins.trac.wordpress.org/log/shortcode-empty-paragraph-fix/)
દ્વારા[આરઅસઅસ](https://plugins.trac.wordpress.org/log/shortcode-empty-paragraph-fix/?limit=100&mode=stop_on_copy&format=rss).

## ચેન્જલૉગ

#### 0.1

 * Initial Release

#### 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://gu.wordpress.org/plugins/tags/fix/)[shortcode](https://gu.wordpress.org/plugins/tags/shortcode/)
 *  [વિગતવાર દૃશ્ય](https://gu.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/)