Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End custome fields get_post_meta question

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26230
    minuscircus
    Member

    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:

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

    #64669
    TheDoc
    Member

    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.