Passer la navigation

[Fermé] Column value not shown on WordPress Admin

This support ticket is created Il y a 1 année et 1 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par Christopher Amirian Il y a 1 année et 1 mois.

Assisté par: Christopher Amirian.

Auteur
Publications
#2695254
Screenshot 2024-05-01 at 11.25.57 PM.png
Screenshot 2024-05-01 at 11.26.25 PM.png
Screenshot 2024-05-01 at 11.26.49 PM.png
Screenshot 2024-05-01 at 11.27.56 PM.png

Dear Sir/Madam,

I have two custom fields in select and number field format and both value may be 0, when value is 0, the value didn't be showed on column on WordPress Admin, please help to explain why.

#2695285

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi there,

This is how WordPress handles the 0 values when it comes to the custom fields. It adds the null value for the item and saves it in the database.

Thanks.

#2695346

How can I force the value be saved to database instead of null or how can I customise the display to the column ?

#2696073

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi there,

you can not change the value in database but you can create a custom code that turns a null value to 0 for example, but Toolset does not have such a functionality.

I made a Google search that might help you find a code to do that:

lien caché

Alternatively you can hire a developer to do that for you:

https://toolset.com/contractors/

Thanks.

Le sujet ‘[Fermé] Column value not shown on WordPress Admin’ est fermé à de nouvelles réponses.