I am working on a project, which requires a page visit count to be shown on the single post.
How can I do this in wordpress, I am guessing, that I have to store them in the same wordpress db?
|
I am working on a project, which requires a page visit count to be shown on the single post. How can I do this in wordpress, I am guessing, that I have to store them in the same wordpress db? |
|||
|
|
|
You can use custom fields for this. What I would suggest is setting up a shortcode you can put on any page you want to show the counter. For an extremely basic example with no HTML formatting, you can do this:
And now you can place |
|||||||
|
Edit I: neewbie note - forgot to explain how to use : Put this in the page you want to count, preferably before anything else but inside the loop.
Put the next line where you want to display the count :
|
||||
|
|