# Shortcodes

Just copy a shortcode and insert it in the post to display the storefront.

Also, there is a button `“Add storefront”` in a visual editor of the post.

Also, you can divide each storefront to several parts, for example:

```php
[affegg id=10 next=3]
```

It shows first 3 products from the storefront. If you insert this code in the post and then insert the same code again

```php
[affegg id=10 next=3]
```

you will see next 3 products from the storefront.

You can also use a parameter `limit`  to limit number of products.

Another parameter `offset` is use to show products from specific number.

An example:

```php
[affegg id=10 offset=5 limit=3]
```

It will show 3 products and will make left first 5 products.

You can also sort products, use `order=<field>`, for example:

```php
[affegg id=10 order=price]
```

It will sort products by price.

This will sort products by price in the reverse mode:

```php
[affegg id=10 order="price desc"]
```

Fields of sorting: `'title'`, `'price'`, `'manufacturer'`, `'in_stock'`, `'create_date'`, `'last_update'`, `'last_in_stock'`, `'shop_id'`.

Also, you can use the random mode:

```php
[affegg id=10 order=rand]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ae-docs.keywordrush.com/shortcodes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
