All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

custome fields get_post_meta question

  • # September 24, 2009 at 7:29 pm

    I am creating a post template in my wordpress.

    I need to have:
    1/ a dynamic src inside an image – so I can place "artist-image" as custom field and the path. This works.
    2/ I need to a link underneath that contains a website link
    3/ pretty much the same as number 2

    Here’s my PHP – 2 and 3 aren’t working – but number 1 is. What am I doing wrong? Any ideas?

    Code:

    < ?php $artistimageCode = get_post_meta ($post ->ID, ‘artist-image’, true);
    $websiteCode = get_post_meta ($post ->ID, ‘website-address’, true);
    $myspaceCode = get_post_meta ($post ->ID, ‘myspace’, true);
    ?>

    # September 24, 2009 at 11:13 pm

    I have already replied to this and moved the thread to a more appropriate section:

    viewtopic.php?f=10&t=4576

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘custome fields get_post_meta question’ is closed to new replies.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed