Support » Themes and Templates » Using custom field VALUES

  • I would like to have the style of my posts change according to a custom value entered in the custom field of a post. Like this:

    If the custom value is “front” post style looks like this…
    or else…
    If the custom value is “back” post style looks like that…

    I have tried using if statements like these.

    <?php if (get_post_custom_values(‘card’));
    if (the post custom value from ‘card’ is front) ?>
    //style the HTML stuff like this //

    But can’t get it to work

    Can anyone help me on this one? Can it even be done? This is driving me insane!

  • The topic ‘Using custom field VALUES’ is closed to new replies.