Hello again
On some homepage items of my theme, the publisher will be able to change the background colour of the div to make the info stand out.
To achieve this, I created a custom field for the posts named "change_colour".
In the loop, I test the custom field, which is either empty or contains the word "black":
<?php [bla bla] the_post();
$MAMA = get_post_custom();
$DADA = $MAMA['change_colour'];
if ($DADA='black'):
[ CSS CHANGE ] ; [endif etc]
Hmm. My PHP works but results are not as expected. Everything turns black. Doesn't work.
I php-[echo]ed the variable to check: it just says "Array".
Damn. What am I missing ?