Title: single shortcode
Author: attosoft
Published: <strong>2011-08-29</strong>
Last modified: 2011-09-11

---

Szukaj wtyczek

Wtyczka **nie została przetestowana z trzema ostatnimi głównymi wydaniami WordPressa**.
Może nie być już utrzymywana lub obsługiwana, co może skutkować problemem ze zgodnością
z nowszymi wersjami WordPressa.

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

# single shortcode

 Autor: [attosoft](https://profiles.wordpress.org/attosoft/)

[Pobierz](https://downloads.wordpress.org/plugin/single-shortcode.zip)

 * [Szczegóły](https://pl.wordpress.org/plugins/single-shortcode/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/single-shortcode/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/single-shortcode/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/single-shortcode/#developers)

 [Wsparcie](https://wordpress.org/support/plugin/single-shortcode/)

## Opis

Using single shortcode plugin, you can hide specified content from [excerpt](https://codex.wordpress.org/Glossary#Excerpt)
of post. The content enclosed with [single] tag is output **only** if single page
is displayed. It’s useful for hiding the following items from excerpt.

 * table of contents
 * footnotes
 * relative links, etc.

Installed this plugin, you can use the following shortcodes.

 * [single] shortcode outputs content **only** if single page is displayed
 * [excerpt] shortcode outputs content **only** if excerpt is displayed

#### Usage

Enclose content with [single] tag.

    ```
    [single] ... [/single]

    [single]
     ...
    [/single]
    ```

You can use [excerpt] tag as necessary.

    ```
    [excerpt] ... [/excerpt]

    [excerpt]
     ...
    [/excerpt]
    ```

#### Example

If you write the following code,

    ```
    <p>paragraph1</p>

    [single]
    <h5>Index</h5>
    <ul>
        <li><a href="#item1">item1</a></li>
        <li><a href="#item2">item2</a></li>
        <li><a href="#item3">item3</a></li>
    </ul>
    [/single]

    <p>paragraph2</p>
    ```

the excerpt is displayed as follows. (Index is NOT output)

> paragraph1
> paragraph2

And single page is displayed as follows. (Index is output)

> paragraph1
>  **Index**
>  * [item1](https://pl.wordpress.org/plugins/single-shortcode/?output_format=md#item1)
>  * [item2](https://pl.wordpress.org/plugins/single-shortcode/?output_format=md#item2)
>  * [item3](https://pl.wordpress.org/plugins/single-shortcode/?output_format=md#item3)
> paragraph2

#### Links

 * [Homepage (attosoft.info)](http://attosoft.info/en/) [[Japanese](http://attosoft.info/)]
 * [single shortcode Plugin Official Site](http://attosoft.info/blog/en/single-shortcode/)[
   [Japanese](http://attosoft.info/blog/single-shortcode/)]
 * ref. [Function Reference / is_single() (WordPress Codex)](https://codex.wordpress.org/Function_Reference/is_single)

## Instalacja

 1. Upload the plugin folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the 'Plugins’ menu in WordPress

## Najczęściej zadawane pytania

  Where is excerpt displayed?

 * Blog homepage (latest posts)
 * Archive, Category, Tag page
 * Search result
 * Posts feed (RSS/Atom)

* Please see [Glossary](https://codex.wordpress.org/Glossary#Excerpt) for more information.

## Recenzje

Wtyczka nie ma jeszcze żadnej recenzji.

## Kontrybutorzy i deweloperzy

„single shortcode” jest oprogramowaniem open source. Poniższe osoby miały wkład 
w rozwój wtyczki.

Zaangażowani

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

[Przetłumacz wtyczkę “single shortcode” na swój język.](https://translate.wordpress.org/projects/wp-plugins/single-shortcode)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/single-shortcode/), 
sprawdź [repozytorium SVN](https://plugins.svn.wordpress.org/single-shortcode/) 
lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/single-shortcode/)
przez [RSS](https://plugins.trac.wordpress.org/log/single-shortcode/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

#### 0.1.1

 * [excerpt] shortcode also outputs content in search results and posts feed (RSS/
   Atom)

#### 0.1

 * Initial release

## Meta

 *  Wersja **0.1.1**
 *  Ostatnia aktualizacja **15 lat temu**
 *  Włączone instalacje **10+**
 *  Wersja WordPressa ** 2.5 lub nowszej **
 *  Testowano do **3.2.1**
 *  Język
 * [English (US)](https://wordpress.org/plugins/single-shortcode/)
 * Tagi
 * [excerpt](https://pl.wordpress.org/plugins/tags/excerpt/)[hide](https://pl.wordpress.org/plugins/tags/hide/)
   [shortcode](https://pl.wordpress.org/plugins/tags/shortcode/)[single page](https://pl.wordpress.org/plugins/tags/single-page/)
   [Single post](https://pl.wordpress.org/plugins/tags/single-post/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/single-shortcode/advanced/)

## Oceny

Nie przesłano jeszcze żadnych recenzji.

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

[Zobacz wszystkierecenzje.](https://wordpress.org/support/plugin/single-shortcode/reviews/)

## Zaangażowani

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

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

 [Zobacz forum wsparcia](https://wordpress.org/support/plugin/single-shortcode/)