Skip Navigation

[Closed] Column value not shown on WordPress Admin

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.

This topic contains 3 replies, has 2 voices.

Last updated by Christopher Amirian 6 months, 2 weeks ago.

Assisted by: Christopher Amirian.

Author
Posts
#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

Languages: English (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

Languages: English (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:

hidden link

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

https://toolset.com/contractors/

Thanks.

The topic ‘[Closed] Column value not shown on WordPress Admin’ is closed to new replies.