Title: Permalink Shortcode
Author: Ryan
Published: <strong>Èbìbí  2, 2013</strong>
Last modified: Èbìbí  2, 2013

---

Ṣàwárí àwọn plugin

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

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

# Permalink Shortcode

 Láti ọwọ́ [Ryan](https://profiles.wordpress.org/rlange/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/permalink-shortcode.1.0.0.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/permalink-shortcode/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/permalink-shortcode/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/permalink-shortcode/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/permalink-shortcode/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/permalink-shortcode/)

## Àpèjúwe

Permalink Shortcode is a relatively simple plugin that implements a shortcode that
you can use to link to existing posts and pages on your site. The shortcode also
supports a number of HTML attributes (see below).

While WordPress does include a feature that allows you to link to existing content,
this feature only inserts a “static” link. If you were to change the slug for that
post or page, previously inserted links would no longer be valid.

The permalink shortcode can be used in two forms:

 1. Standard: `<a href="[permalink wpid='123']">link text</a>`
 2. Enclosing: `[permalink wpid="123"]link text[/permalink]`

(Note the single quotes used in the standard form example above. Using double quotes
in this situation will not work.)

#### Supported Attributes

The following attributes are available in both the shortcodeÌtumọ̀ Yorùbá: ’s standard
form and its enclosing form:

 * `wpid`: The ID number of the post or page to which you want a link.
 * `query`: The part of a URL that comes after the ‘?’ (e.g. “?foo=bar”). The ‘?’
   is optional and will be added automatically if not included.
 * `fragment`: The part of the URL that comes after the ‘#’ (e.g. “#comments”). 
   The ‘#’ is optional and will be added automatically if not included.

The following HTML attributes are available only in the shortcodeÌtumọ̀ Yorùbá: ’
s enclosing form:

 * `accesskey`
 * `charset`
 * `class`
 * `dir`
 * `hreflang`
 * `id`
 * `lang`
 * `media`
 * `rel`
 * `rev`
 * `style`
 * `target`
 * `title`
 * `type`

Things to be aware of with some of the above attributes:

 * In the enclosing form, the CSS class name `permalink-shortcode` is always added
   to the `class` attribute, even if you donÌtumọ̀ Yorùbá: ’t specify any class 
   names yourself.
 * In the enclosing form, if no value is given for the `title` attribute, the post
   or page title will be used.

#### Usage Examples

**Simple link (standard form):**

> `<a href="[permalink wpid='123']">link text</a>`

_Result:_

> `<a href="http://www.example.com/hello-world/">link text</a>`

**Simple link (enclosing form):**

> `[permalink wpid="123"]link text[/permalink]`

_Result:_

> `<a href="http://www.example.com/hello-world/" class="permalink-shortcode" title
> ="Hello, world!">link text</a>`

**Linking to the Comments section of a post (standard form):**

> `<a href="[permalink wpid='123']#comments">link text</a>`
> …or…
> `<a href="[permalink wpid='123' fragment='comments']">link text</a>`

_Result:_

> `<a href="http://www.example.com/hello-world/#comments">link text</a>`

**Adding a custom CSS class and title (enclosing form):**

> `[permalink wpid="123" class="my-class" title="Some Other Page"]link text[/permalink]`

_Result:_

> `<a href="http://www.example.com/hello-world/" class="permalink-shortcode my-class"
> title="Some Other Page">link text</a>`

## Ìgbéwọlẹ̀

 1. Unzip the downloaded .zip file.
 2. Upload the `permalink-shortcode` folder to your `/wp-content/plugins/` directory.
 3. Activate the plugin through the ‘Plugins’ menu in WordPress

## FAQ

  How do I find the ID of the post or page?

The ID for a post or page can be found in just about any Edit link for that content.
All you need to do is hover your mouse over the link and look at the tooltip that
displays the URL (where this appears depends on the browser youÌtumọ̀ Yorùbá: ’re
using). An example:

> `http://www.example.com/wp-admin/post.php?post=123&action=edit`

In the above example, `123` is the ID of the post. This is the number you want to
use for the shortcodeÌtumọ̀ Yorùbá: ’s `wpid` attribute, like so:

> `[permalink wpid="123"]`

## Àwọn àgbéyẹ̀wò

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

### 󠀁[Still excellent](https://wordpress.org/support/topic/still-excellent-2/)󠁿

 [mindwarp2000](https://profiles.wordpress.org/mindwarp2000/) Igbe 10, 2018

Taken me half an hour to find this gem. I can add links to drafts too. If only it
worked with media too.

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

### 󠀁[CanÌtumọ̀ Yorùbá: ’t find how to setup](https://wordpress.org/support/topic/cant-find-how-to-setup/)󠁿

 [alfredovazquez](https://profiles.wordpress.org/avazquezsicrom/) Ẹrẹ́nà 21, 2018
1 ìdáhùn

¿where is the menu to setting up?

 [ Ka gbogbo àwọn àgbéyẹ̀wò 4 ](https://wordpress.org/support/plugin/permalink-shortcode/reviews/)

## Àwọn Olùkópa & Olùgbéejáde

“Permalink Shortcode” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe
ìkópa sí plugin yìí.

Àwọn Olùkópa

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

[Túmọ̀ “Permalink Shortcode” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/permalink-shortcode)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/permalink-shortcode/),
ṣàyẹ̀wò [ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/permalink-shortcode/),
tàbí ṣe àgbékalẹ̀ sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/permalink-shortcode/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/permalink-shortcode/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 1.0.0

 * Initial release.

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.0.0**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 13 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **100+**
 *  Ẹ̀yà WordPress ** 2.8 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **3.5.2**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/permalink-shortcode/)
 * Àwọn àmì
 * [permalink](https://yor.wordpress.org/plugins/tags/permalink/)[shortcode](https://yor.wordpress.org/plugins/tags/shortcode/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/permalink-shortcode/advanced/)

## Àwọn ìbò

 4 lára àwọn ìràwọ̀ 5.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/permalink-shortcode/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/permalink-shortcode/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/permalink-shortcode/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/permalink-shortcode/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/permalink-shortcode/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/permalink-shortcode/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/permalink-shortcode/reviews/)

## Àwọn Olùkópa

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

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/permalink-shortcode/)