> For the complete documentation index, see [llms.txt](https://ae-docs.keywordrush.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ae-docs.keywordrush.com/shortcodes.md).

# Shortcodes

Copy a shortcode and insert it into your post to display the storefront.

There is also an **Add storefront** button in the post's visual editor.

You can split a storefront into several sections. For example:

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

This shows the first 3 products from the storefront. If you insert this shortcode again:

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

it will show the next 3 products from the storefront.

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

The `offset` parameter shows products starting from a specific position.

An example:

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

This shows 3 products, skipping the first 5.

You can also sort products using `order=<field>`. For example:

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

This sorts products by price.

To sort in reverse order:

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

Available sort fields: `title`, `price`, `manufacturer`, `in_stock`, `create_date`, `last_update`, `last_in_stock`, `shop_id`.

You can also use random order:

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.
