I am having trouble with a plugin I\'m building. I\'ve narrowed the problem down to the minimum amount of code to display the issue.
When I run a function to get post