alleyinteractive / alleyinteractive/wordpress-fieldmanager

Fieldmanager_Autocomplete showing cateegory name + slug while adding, disappreas after saving.

Open
#803 5 comments 0 reactions 0 assignees View on GitHub
reporter-feedback
Dominant language
PHP
Stars
563
Forks
99
PR merge metrics
No merged PRs in 30d

Description

This is the code

```
'category' => new Fieldmanager_Autocomplete( array(
'label' => 'Category',
'name' => 'category',
'limit' => 0,
'extra_elements' => 0,
'add_more_label' => 'Add Category',
'display_if' => [ 'src' => 'filter_type', 'value' => 'category' ],
'datasource' => new Fieldmanager_Datasource_Term( array(
'taxonomy' => array( 'category' ),
'taxonomy_save_to_terms' => false
) )
) ),
```

while adding a category, it is showing the slug alongside, but after saving, the slug disappears.

While adding
![image](https://user-images.githubusercontent.com/5362437/117371376-6595ec00-aee5-11eb-8fba-a21c6824f891.png)

after saving
![image](https://user-images.githubusercontent.com/5362437/117371434-82322400-aee5-11eb-9945-8fb773a45553.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.