wp-papi / papi

:rocket: WordPress Page Type API with custom fields
https://wp-papi.github.io
MIT License
263 stars 32 forks source link

Relationship in repeater cache output weird #262

Closed frozzare closed 5 years ago

frozzare commented 5 years ago

What I expected

Updated output when I save fields in admin.

What happened instead

Old/cached output is returned instead.

Steps to reproduce

$this->box( 'Items', [
    papi_property( [
        'slug'     => 'items',
        'title'    => 'Items',
        'type'     => 'repeater',
        'settings' => [
            'items' => [
                papi_property( [
                    'title'    => 'Pages',
                    'slug'     => 'pages',
                    'type'     => 'relationship',
                    'settings' => [
                        'post_type' => [ 'page' ],
                        'only_once' => true,
                    ],
                ] ),
            ],
        ],
    ] ),
] );

What versions of softwares are you using?

frozzare commented 5 years ago

Can't reproduce. Closing until it happens again.