Title: Truncate Text
Author: WebPro
Published: <strong>2. marts, 2023</strong>
Last modified: 18. maj, 2025

---

Søg plugins

![](https://ps.w.org/truncate-text/assets/banner-772x250.png?rev=3295985)

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

![](https://ps.w.org/truncate-text/assets/icon-256x256.png?rev=3295985)

# Truncate Text

 Af [WebPro](https://profiles.wordpress.org/nchisley/)

[Download](https://downloads.wordpress.org/plugin/truncate-text.1.0.3.zip)

 * [Detaljer](https://da.wordpress.org/plugins/truncate-text/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/truncate-text/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/truncate-text/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/truncate-text/#developers)

 [Support](https://wordpress.org/support/plugin/truncate-text/)

## Beskrivelse

Truncate Text lets you shorten long strings of text in posts, pages, or custom content.
Ideal for trimming usernames, crypto wallet addresses, or any lengthy content, it
offers flexible options to control exactly how and where the text is truncated.

Check out our other awesome plugins: [Admin Hero](https://wordpress.org/plugins/admin-hero)
| [Admin Shift](https://wordpress.org/plugins/admin-shift)

### Usage

 * Use the `[truncate-text]` shortcode to truncate text in your post or page content.
 * Use the `[truncate-shortcode]` shortcode to process nested shortcodes before 
   truncating.

### Optional Attributes

These attributes work with both shortcodes:
 – **`limit`**: Set the number of characters
to display (default: 6). Example: `[truncate-text limit="8"]0x8755B12f034ee7b2383fCF5E849201C71622CC44[/
truncate-text]`  `0x8755B1...1622CC44` – **`encoding`**: Specify the text encoding(
default: UTF-8). Example: `[truncate-text encoding="ISO-8859-1"]text[/truncate-text]`–**`
location`**: Choose where to truncate: “start”, “middle” (default), or “end”. Examples:–`[
truncate-text location="start"]0x8755B12f034ee7b2383fCF5E849201C71622CC44[/truncate-
text]`  `...1622CC44` – `[truncate-text location="middle"]0x8755B12f034ee7b2383fCF5E849201C71622CC44[/
truncate-text]`  `0x8755...22CC44` – `[truncate-text location="end"]0x8755B12f034ee7b2383fCF5E849201C71622CC44[/
truncate-text]`  `0x8755...` – **`dots`**: Set the number of dots in the ellipsis(
default: 3). Examples: – `[truncate-text location="end" dots="10"]0x8755B12f034ee7b2383fCF5E849201C71622CC44[/
truncate-text]`  `0x8755..........` – `[truncate-text location="middle" dots="5"]
0x8755B12f034ee7b2383fCF5E849201C71622CC44[/truncate-text]`  `0x8755.....22CC44`

### Nested Shortcode Example

 * `[truncate-shortcode limit="6" location="end" dots="4"][another-shortcode][/truncate-
   shortcode]`
    Processes the inner shortcode first, then truncates the result.

### Support

If you have questions or issues, please reach out through our support channel at
[NateChisley.com](https://natechisley.com). We’re happy to assist!

### Contributing

We welcome contributions! Please follow our guidelines for contributing at [NateChisley.com](https://natechisley.com).

## Skærmbilleder

[[

[[

## Installation

 1. Log in to your WordPress site as an administrator.
 2. Go to the “Plugins” section in the WordPress dashboard.
 3. Click “Add New” and then click the “Upload Plugin” button.
 4. Choose the `truncate-text.zip` file from your computer and click “Install Now.”
 5. After installation is complete, click the “Activate Plugin” button.

## Anmeldelser

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

### 󠀁[Definitely the best and kudos to the developer](https://wordpress.org/support/topic/definitely-the-best-and-kudos-to-the-developer/)󠁿

 [ZanchettaSol](https://profiles.wordpress.org/zanchettasol/) 24. marts, 2025 3 
svar

Best plugin for truncating text and not only, in my theme it also works inside the
settings so I can control any text. I contacted the developer who in a few hours
modified the plugin with my request and did it in a short time and going beyond 
my expectations. Great job!

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

### 󠀁[Great for truncating crypto wallet addresses!](https://wordpress.org/support/topic/great-for-truncating-crypto-wallet-addresses/)󠁿

 [WebPro](https://profiles.wordpress.org/nchisley/) 2. marts, 2023

Truncate text in a snap!

 [ Læs alle 2 anmeldelser ](https://wordpress.org/support/plugin/truncate-text/reviews/)

## Bidragsydere & udviklere

“Truncate Text” er open source-software. Følgende personer har bidraget til dette
plugin.

Bidragsydere

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

[Oversæt “Truncate Text” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/truncate-text)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/truncate-text/), tjek
[SVN repository](https://plugins.svn.wordpress.org/truncate-text/), eller abonner
på [udviklerloggen](https://plugins.trac.wordpress.org/log/truncate-text/) via [RSS](https://plugins.trac.wordpress.org/log/truncate-text/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 1.0.3

 * Restructured directory.

#### 1.0.2

 * Added important links to the plugin page listing and settings page.
 * Brand/images update.

#### 1.0.1

 * New attributes added (limit, location, encoding, dots).
 * Added support for nested shortcodes.

#### 1.0.0

 * Initial release with `[truncate-text]` and `[truncate-shortcode]` shortcodes.

## Meta

 *  Version **1.0.3**
 *  Senest opdateret **1 år siden**
 *  Aktive installationer **10+**
 *  WordPress-version ** 5.0 eller højere **
 *  Testet op til **6.8.10**
 *  PHP-version ** 7.2 eller højere **
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/truncate-text/)
 * Tags
 * [Content Formatting](https://da.wordpress.org/plugins/tags/content-formatting/)
   [truncate](https://da.wordpress.org/plugins/tags/truncate/)[truncate text](https://da.wordpress.org/plugins/tags/truncate-text/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/truncate-text/advanced/)

## Bedømmelser

 5 ud af 5 stjerner.

 *  [  2 5-stjernet anmeldelser     ](https://wordpress.org/support/plugin/truncate-text/reviews/?filter=5)
 *  [  0 4-stjernet anmeldelser     ](https://wordpress.org/support/plugin/truncate-text/reviews/?filter=4)
 *  [  0 3-stjernet anmeldelser     ](https://wordpress.org/support/plugin/truncate-text/reviews/?filter=3)
 *  [  0 2-stjernet anmeldelser     ](https://wordpress.org/support/plugin/truncate-text/reviews/?filter=2)
 *  [  0 1-stjernet anmeldelser     ](https://wordpress.org/support/plugin/truncate-text/reviews/?filter=1)

[Din anmeldelse](https://wordpress.org/support/plugin/truncate-text/reviews/#new-post)

[Se alle anmeldelser](https://wordpress.org/support/plugin/truncate-text/reviews/)

## Bidragsydere

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

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/truncate-text/)

## Donér

Vil du gerne støtte udviklingen af dette plugin?

 [ Donér til dette plugin ](https://natechisley.com/donate)