WordPress.org

Ready to get started?Download WordPress

Forums

Using custom field VALUES (1 post)

  1. mrsheedy
    Member
    Posted 8 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic