Forums › Forums › Search & Filter Pro › Settings & Defaults Strangeness
Tagged: UI improvement, V3
- This topic has 5 replies, 2 voices, and was last updated 7 years, 2 months ago by Trevor.
-
Anonymous(Private) September 25, 2017 at 8:36 pm #132940
We’ve encountered some strange behavior when configuring the plugin via the Settings & Defaults menu page in WP Admin. We can select any term in a taxonomy (Categories, tags, or Custom). However, after submitting the form, only terms that have posts are displayed in the fields when the page reloads. The values are correctly stored in the DB.
Anonymous(Private) September 26, 2017 at 5:58 pm #133196To replicate the issue:
1. Create several tags, categories, or custom taxonomy terms. The terms are not associated with any posts.
2. On Settings & Defaults menu page of Search plugin choose those terms to include or exclude.
3. Save the form
–what happens: the field for the taxomony is empty.
–what I expect to happen: the field should contain the terms selected prior to saving the form.
Extra Credit: Look in the database and you’ll see the value has been correctly saved.Anonymous(Private) September 26, 2017 at 8:33 pm #133220Yes, but its confusing to the user. From the user perspective it appears that the plugin is not saving their selections. You could trigger a validation error prior to saving to alert the user that they have selected terms without posts and have them correct the form. I think you might be able to filter the list of terms in the select2 field to exclude terms with no posts. You’d likely also want to add an instruction to the input clarifying that only terms with posts associated can be selected so the user understands why only a subset of the the terms appears when using the select2 field.
-
AuthorPosts