---
title: Shortcodes und Erweiterungen
description: "Hier findest du eine Übersicht der Shortcodes und deren Erweiterungen durch Attribute. ## Basis-Shortcodes ### Textlinks PHP ``` [amazon link=\"ASIN\"] ``` [Hier klicken](https://aawp.de/docs/article/produktlinks/) ### Produktboxen PHP ``` [amazon box=\"ASIN\"] ``` [Hier klicken](https://aawp.de/docs/article/produktboxen/) ### Bestseller (Listen) PHP ``` [amazon bestseller=\"Suchbegriff\"] ``` [Hier…"
url: "https://aawp.de/docs/article/shortcodes/"
updated: "2016-04-12"
category: Funktionen
---

# Shortcodes und Erweiterungen

Hier findest du eine Übersicht der Shortcodes und deren Erweiterungen durch Attribute.

## Basis-Shortcodes

### Textlinks

 PHP

```
[amazon link="ASIN"]
```

[Hier klicken](https://aawp.de/docs/article/produktlinks/)

### Produktboxen

 PHP

```
[amazon box="ASIN"]
```

[Hier klicken](https://aawp.de/docs/article/produktboxen/)

### Bestseller (Listen)

 PHP

```
[amazon bestseller="Suchbegriff"]
```

[Hier klicken](https://aawp.de/docs/article/bestseller-listen/)

### Neuerscheinungen (Listen)

 PHP

```
[amazon new="Browse_Node_ID"]
```

[Hier klicken](https://aawp.de/docs/article/neuerscheinungen-listen/)

### Fields (Datenfelder)

 PHP

```
[amazon fields="ASIN" value="type"]
```

[Hier klicken](https://aawp.de/docs/article/fields-einzelne-produktdaten/)

## Anpassungen und Erweiterungen

| Icon | Funktion |
| --- | --- |
| Box | Produktboxen |
| Best | Bestseller (Listen) |
| New | Neuerscheinungen (Listen) |
| Fields | Fields (Datenfelder) |
| Link | Text-Links |

Die Icons geben an, ob die folgenden Anpassungen für diesen Funktions-Typen verfügbar sind.

### Lists (and multiple boxes)

| Attribute | Available for |
| --- | --- |
| items Defines the maximum amount of products which will be shown. | BestNew |
| Numbers from 1 to 25; Default: 10 |  |
| select Selecting a single or range of products out of a list. | BestNew |
| Numbers; e.g. "3" in order to show the third product; "3-5" in order to show product three to five. |  |
| order Direction of ordering. | BoxBestNew |
| ASC (ascending), DESC (descending) |  |
| orderby Ordering on the basis of certain attributes. | BoxBestNew |
| amount_saved, percentage_saved, price, rating, title |  |
| order_items Similar to the global "items" attribute but defining the maximum order (search) radius. | BoxBestNew |
| Numbers from 1 to 10; Default: 10 respectively the value of "items" |  |
| filterby Filtering on the basis of certain attributes. | BoxBestNew |
| price, title |  |
| filter Defining the characteristic for applying the filter. | BoxBestNew |
| Any text, any number, offer; (the values depend on the "filterby" attribute) |  |
| filter_items Similar to the global "items" attribute but defining the maximum filter (search) radius. | BoxBestNew |
| Numbers from 1 to 10; Default: 10 respectively the value of "items" |  |
| filter_type Defining the filter direction. | BoxBestNew |
| include, exclude; Default: include |  |
| filter_compare Required for comparing prices. | BoxBestNew |
| equal, less, more, range; Default: equal |  |
| ribbon Hiding the ribbon (e.g. bestseller no X) on the top left. | BestNew |
| none |  |
| ribbon_text Overwriting the ribbon text (e.g. bestseller no X) on the top left. | BestNew |
| Any text; e.g. `Bestseller No. %NUMBER%` |  |

### Title and links

| Attribute | Available for |
| --- | --- |
| title Overwriting the original product title. | BoxFieldsLink |
| Any text |  |
| title_length Specifies a maximum amount of characters for the product title. | BoxBestNewFieldsLink |
| Numbers from 1 to 255 |  |
| link_title Overwriting HTML link „title“ attribute. | BoxFieldsLink |
| Any text |  |
| link_overwrite Replacing the links. | BoxFieldsLink |
| Any URL |  |
| link_type Specify the link type. | BoxBestNewFieldsLink |
| basic, reviews, cart |  |
| link_icon Specify the link icon. | Link |
| none, amazon, amazon-logo, cart |  |
| link_class Specify your own link CSS classes. | Link |
| Anyone, e.g. "my-button" or "my-button second-style" |  |

### Descriptions

| Attribute | Available for |
| --- | --- |
| description Using a custom product description. | BoxFields |
| Any text |  |
| description_items Specify a maximum amount for list items. | BoxBestNewFields |
| Numbers from 1 to 10 |  |
| description_length Specifies a maximum amount of characters for each list item. | BoxBestNewFields |
| Numbers from 1 to 255 |  |
| description_text Displays an extra text below the standard description list. | Box |
| Any text |  |

### Images

| Attribute | Available for |
| --- | --- |
| image Selecting a another product thumbnail. At most 5 images available. Additionally you can choose your own image. | BoxFields |
| Numbers from 1 to 5; or image url |  |
| image_size Overwriting the thumbnail size. | BoxBestNewFields |
| small, medium, large |  |
| image_alt Overwriting HTML image „alt“ attribute. | BoxBestNewFields |
| Any text |  |
| image_title Adding HTML image „title“ attribute. | BoxFields |
| Any text |  |
| image_align Align images right or left | Fields |
| center, right, left |  |
| image_width Specifies the width of a single image. | Fields |
| Numbers from 1 to 500 |  |
| image_height Specifies the height of a single image. | Fields |
| Numbers from 1 to 500 |  |
| image_class Overwriting HTML image „class“ attribute. | Fields |
| Any text; e.g. *my-image-class* |  |

### Buttons

| Attribute | Available for |
| --- | --- |
| button Hiding the "Buy on Amazon" button. | BoxBestNew |
| none |  |
| button_text Overwriting the button text. | BoxBestNewFields |
| Any text |  |
| button_detail Displaying an extra button and setting up the link target. | BoxBestNewFields |
| Number (= Post ID) or any URL |  |
| button_detail_text Overwriting the button text. | BoxBestNewFields |
| Any text |  |
| button_detail_title Overwriting HTML link „title“ attribute. | BoxBestNewFields |
| Any text |  |
| button_detail_target Overwriting HTML link „target“ attribute (standard = current window). | BoxBestNewFields |
| _blank |  |
| button_detail_rel Setting a custom HTML link „rel“ attribute | BoxBestNewFields |
| Any text |  |

### Pricing

| Attribute | Available for |
| --- | --- |
| price Overwriting the price text. | BoxBestNewFields |
| Any text; e.g. `19 EUR` |  |
| sale_ribbon_text Overwriting the sale ribbon text on the top right. | BestNew |
| Any text; e.g. `Sale: %PRICE_REDUCTION%` |  |

### Star-/Ratings

| Attribute | Available for |
| --- | --- |
| rating Overwriting the rating value. | BoxFields |
| Values from 1 to 5; e.g. "2" or "2.5" |  |
| star_rating Hiding the star rating (and rating col of the table template). | BoxBestNew |
| none |  |
| star_rating_size Overwriting the star rating size. | BoxBestNewFields |
| small, medium, large |  |
| star_rating_link Overwriting the star rating link. | BoxBestNewFieldsLink |
| reviews, detail_page, none, postid, https://my-url.com |  |
| reviews Hiding the amount of reviews. | BoxBestNew |
| none |  |

### Templates & Styles

| Attribute | Available for |
| --- | --- |
| template Replacing the PHP template which will be used for the output. | BoxBestNewFieldsLink |
| horizontal (default), vertical, list, table, widget, widget-vertical (default), widget-small; alternatively the name of your custom template (without the file extension) |  |
| grid Displaying product boxes side by side. | BoxBestNew |
| Numbers from 1 to 6 |  |
| numbering Shows the numbering col when using table template for unordered lists. | BoxNew |
| true |  |
| style Overwriting the style for product boxes. | BoxBestNew |
| standard, light, dark |  |
| class Adding a new class to the product container. | BoxBestNew |
| e.g. "my-class" |  |

### Other

| Attribute | Available for |
| --- | --- |
| tracking_id Replacing the tracking id which will be used for affiliate links. | BoxBestNewFieldsLink |
| Any text |  |

*Die Übersicht wird regelmäßig aktualisiert.*
