The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

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?


    < ?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:


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