Hi Eric,
Cool, I am stoked to see you were able to figure it out! Good job dude!
The code looks absolutely fine.
I’m not sure but instead of $post->ID maybe only $post would be enough. But it’s fine nonetheless.
It should be pretty stable with updates. You would only need to revise it if we did some major change in our templates. So you might want to run a file comparison sometimes when a new release comes out if there is any difference between the old and the new template. But you should be pretty safe.
I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.
Cheers,
Andras