# wp-ultimate-post-grid/1.7.2/helpers/vafpress/vafpress_shortcode_options.php

WP Ultimate Post Grid, version 1.7.2. 52 lines.

- Page: https://pluginprobe.com/plugins/wp-ultimate-post-grid/1.7.2/code/helpers/vafpress/vafpress_shortcode_options.php
- Raw: https://pluginprobe.com/plugins/wp-ultimate-post-grid/1.7.2/raw/helpers/vafpress/vafpress_shortcode_options.php
- Modified: 2015-09-29T13:38:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-ultimate-post-grid/1.7.2/code/helpers/vafpress/vafpress_shortcode_options.php#L10-L20`.

```php
<?php

$shortcode_generator = array(
//=-=-=-=-=-=-= GRID =-=-=-=-=-=-=
    __( 'Grid', 'wp-ultimate-recipe' ) => array(
        'elements' => array(
            'by_date' => array(
                'title'   => __('Select a grid to display', 'wp-ultimate-post-grid') . ' - ' . __('Ordered by date added', 'wp-ultimate-post-grid'),
                'code'    => '[wpupg-grid]',
                'attributes' => array(
                    array(
                        'type' => 'select',
                        'name' => 'id',
                        'label' => __('Grid', 'wp-ultimate-post-grid'),
                        'items' => array(
                            'data' => array(
                                array(
                                    'source' => 'function',
                                    'value' => 'wpupg_shortcode_generator_grids_by_date',
                                ),
                            ),
                        ),
                    ),
                ),
            ),
        ),
    ),
//=-=-=-=-=-=-= FILTER =-=-=-=-=-=-=
    __( 'Filter', 'wp-ultimate-recipe' ) => array(
        'elements' => array(
            'by_date' => array(
                'title'   => __('Select a filter to display', 'wp-ultimate-post-grid') . ' - ' . __('Ordered by date added', 'wp-ultimate-post-grid'),
                'code'    => '[wpupg-filter]',
                'attributes' => array(
                    array(
                        'type' => 'select',
                        'name' => 'id',
                        'label' => __('Grid', 'wp-ultimate-post-grid'),
                        'items' => array(
                            'data' => array(
                                array(
                                    'source' => 'function',
                                    'value' => 'wpupg_shortcode_generator_grids_by_date',
                                ),
                            ),
                        ),
                    ),
                ),
            ),
        ),
    ),
);
```
