Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Filip

Cannot set filter for custom field column

We have a setup with custom field for posts, but see no icon to set the column as filterable (sortable works, though) Please advise, thanks.

8 years ago
Tobias Schutter
Developer

Could you tell us the exact column settings? And for which post type?

7 years, 12 months ago
Filip

Post-type is post. Column settings

  • type: Custom Field
  • label: Make Up
  • width: auto
  • custom field: makeup
  • field type: multiple values
  • pre/post: empty
  • sorting activated: yes
7 years, 12 months ago
Stefan van den Dungen Gronovius
Developer

Hi Filip,

A custom field with field type ‘multiple values’ cannot be filtered.
This is mainly because with this field type we assume that the value is serialized and filtering on serialized data is not possible without a severe performance penalty.

I’m not sure what type of content you have, but you can try to use a different field type depending on the value type you use.

7 years, 12 months ago
Stefan van den Dungen Gronovius
Developer

The problem with Custom Fields is that there can be many implementations on how a value is stored in the database. In you case I think you store the multiple select options as serialized data and this is not filterable.

Can you tell me which plugin you use to show you this field in the backend? I’m not familiar with your setup, but maybe you can use a taxonomy to store the options. In that case you can add a taxonomy columns with our plugin and filter on the options. Otherwise I’m afraid you’re not able to use filtering on this field.

7 years, 12 months ago

You must be logged in to reply to this topic.