I need a hook such that when visitor lands on any of the post (not page), I need to record a hit.
How can I find whether the request is for post, and is there any hook to find if the loaded content is post, and if yes, what is post id
I need a hook such that when visitor lands on any of the post (not page), I need to record a hit.
How can I find whether the request is for post, and is there any hook to find if the loaded content is post, and if yes, what is post id
You must be logged in to post a comment.
something like this will work: