Support » Plugins » Help with add_post_meta…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ok, I realized the plugin is 100% storing the info… it’m just not able to retrieve it…

    The following code works when viewing the published page, but not within the admin panel; why?

    $yeye = get_post_meta( $post_id, 'routine_selection' );
    echo $yeye;
    }

    Ok, so I had to do the following:

    global $post;
    $yeye = get_post_meta( $post->ID, 'routine_selection', true);
    echo $yeye;

    Thanks team.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help with add_post_meta…’ is closed to new replies.