Last year, with some help from this forum, I was able to add some custom PHP code to my site, without a plugin, that allows me to show the # of page views for each post.
This is displayed using a PHP code snippet embedded on the same page.
I would like to expose this same counter with each post preview (for example, on the main blog page, or a preview list embedded as a widget on any page.)
However, it’s not clear to me if/how to do this without using JavaScript.
The post preview widget allows for custom CSS classes, but no custom PHP code.
Any thoughts or ideas?