Change post view function

Posted in: Newspaper
Post count: 15

Hello,

which file and string in theme or your plugin have i to change for change default post views increment?
For example ad +2 to the counter instead of +1 for a real visit.

Thanks!

Post count: 27744

Hello,

You can increment post views on each post from Gutenberg editor => https://www.screencast.com/t/Ow6DDpTzcmZ -> https://www.screencast.com/t/aLalskIg7
If you make any changes to the files they will be lost after the update.

Thank you!

Post count: 15

Hello,
thanks for the reply.
I need it automatically. A function that i can i use in a plugin so i don’t have to touch the theme? Thanks.

Post count: 27744

Hello,

Because there is no option in the Theme Panel, you can make changes in the files, but the changes will be lost after you make an update.
To make changes you can find the function in this path ” wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php ” => https://www.screencast.com/t/olnN0qsJ you need to multiply by a number, my example is by 4.

Hope this helps you!

Thank you!

Post count: 15

Thanks for the solution but sorry i omitted an important thing.
I mean the counter in backend, in article list not on post frontend.
Can you tell me the function/file for that? Thanks!

Post count: 27744

Hello,

For that is this path ” wp-content/plugins/td-composer/legacy/common/wp_booster/td_page_views.php ” and in this file, you need to make changes => https://www.screencast.com/t/gjQrk3p8dr

Hope this helps you!

Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.