• Resolved Trevsweb

    (@trevsweb)


    would like to retrieve the custom field i setup on my page to get a youtube url but on a page not a post.

    the_meta() posts up the list junk i don’t need
    get_post_meta() gets me what i want but doesnt work on my page

    i just want the value of the custom field from the field “Youtube”

    is there a solution?

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter Trevsweb

    (@trevsweb)

    found it after a bizaree search

    <?php $key="MYKEY"; echo get_post_meta($post->ID, $key, true); ?>

Viewing 1 replies (of 1 total)

The topic ‘retrieving a custom field value on pages’ is closed to new replies.