Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #97567
    David Greenberg
    Guest

    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?

    #97670
    Brandon C
    Keymaster

    Hi 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?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Show # Post Views in Preview Listing Widget’ is closed to new replies.