Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    What happens if you use get_queried_object_id() instead of get_the_id()?

    Thread Starter Holkan

    (@cubeinthebox)

    Sorry for the late reply.
    That same day I realized that if I want to access data from within your plugin I had to get in context. After a little digging in the code I found that the way to access the post ID and other data is through something like this: get_post_meta($this->get( 'post_id' ), 'post_meta', true);

    Thanks for take the time to answer my naive question!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t get post meta in amp pages’ is closed to new replies.