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!