get NOT NULL custom fields with “more fields”
-
Hi!
I use “more fields” plugin to organize custom fields into separate groups (boxes in post edit/write). I’d like to display the list of Titles and Values for the specific post.
I want to show only the Title and Value where the value is not empty (<> “”) because the posts don’t have a value for every custom field.
So let’s say my “public custom field group” has the following data:
TITLE – KEY
Bedrooms – bedrooms
Bathrooms – baths
Garden – garden
Air Conditioning – acThe values for a specific post:
TITLE – KEY – VALUE
Bedrooms – bedrooms – 2
Bathrooms – baths – 1
Garden – gardensize – (NULL) no values assigned
Air Conditioning – ac – OFF >>> as it is a checkbox (on-off)
Alarm System – alarm – ON >>> as it is a checkbox (on-off)The result list in the post should be:
Bedrooms: 2
Bathrooms: 1
Alarm SystemThanks a lot!
Gabriele
- The topic ‘get NOT NULL custom fields with “more fields”’ is closed to new replies.