- AuthorPosts
- July 17, 2023 at 1:23 pm #97567David GreenbergGuest
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?
July 17, 2023 at 1:30 pm #97670Brandon CKeymasterHi David,
Thanks for reaching out with your Crio Pro WordPress theme and BoldGrid Post and Page Builder questions!
I couldn’t locate the previous thread you mentioned but lets see if we can help you out. You mentioned you were able to incorporate a PHP code snippet. Did you add that snippet using the Code Snippets preview or something similar. Or were you using some specific method when you say you that the PHP snippet was embedded directly into the page.
Are you able to send us that snippet so that we can take a look?
- AuthorPosts
- The topic ‘Show # Post Views in Preview Listing Widget’ is closed to new replies.