Yes I know about editing it on the admin side but I would like to do it with PHP & Javascript as I want to attach it to the links the users click on.
For example, I have a RSS aggregator website. Each time the user click on the links that exits the website, I would like to manually add 1 view to the post that relates to the link. [I would like to attach a Javascript code to this]
Another would be me providing RSS feeds to my user. Example link: https://www.mysite.com/ext/34305/. When users click on that link, i would like to add a view to the post that relates to that link. [I would like to do this in PHP]
As you can see, when users click on the link, it won’t go to the post but actually exit the website. The links is related to the post so I would like to add a view to the post ID.
I would just like to know if there’s a function or way to easily add views to a post id via PHP and Javascript code. Thanks!