Hi Brian,
I've just tested the code and it works fine to me. I modified the code a little bit to work for my test (as I don't have your hook, I use the_content
, everything else is the same):
https://ghostbin.com/paste/fn24m
Here is my screenshots:
https://screenshots.firefox.com/iwwS8S5VJn85bYN6/localhost
https://screenshots.firefox.com/3coKCuQPHAxCyH00/localhost