Hello, I did a big mistake and deleted the plugin from my site. I’ve reinstalled it and now the Total Views on the Posts page is stuck at 1 and it doesn’t update.
The Views count is updating and I see something like 1/210 (the latter number is the unique visits and it’s working). Today’s View column also works and it updates as expected.
It’s just the Total Views that is not working and it’s stuck at 1 only for new posts published after reinstalling the plugin.
I could just stick with the Views column, but I’m afraid something is wrong with my install or maybe it needs more time to adjust? I have tried switching between REST API and Query based trackers, but there’s no change to the Total Views on posts.
Could you please take a look? Thank you!
Edit: I have even disabled the caching plugin (Jetpack Boost). Also, I’ve now disabled the Overall count since I’m more interested in popular posts over the last few days/week rather than from the begining of time ??
]]>Hello, one of the database tables (top_ten_daily
) from Top 10 contains millions of entries and it’s quite large I’ll say. I’m afraid it slows down my website, so is there a way to empty this data on a regular schedule, such as monthly? Thanks!
Hello, I enabled and set up the plugin Top 10 but I see no visists. I checked and I descovered that there are no plugin’s tables in my database. Why’s that? any ideas to resolve it?
]]>Top 10 popular post widget is stuck on my home page with three blog post, but on the back end it looks to be up to date. The widget is located under “Popular Posts”. Not sure why it is not updating. Can you help?
]]>Is it possible to enable the dashboard daily visits graph presented on the backend to be visible not only to admins but also to the users with other roles, like editors?
]]>Hello, for some time we have been looking if this plugin is compatible with some of the most popular and fast wordpress themes such as wp astra, blocksy, wp kadence and we have not found an answer.
The idea is that we really appreciate your work and we think that this plugin could be a good one for us, especially if it could be compatible with some of the mentioned themes. Because we want to make a news website, but considering that we are talking about a news website, the lack of a function to sort the articles based on popular articles, somewhat prevents us from using a theme as fast as possible.
That’s why I ask you, if we could have an option in which to combine the plugin with the theme.
Thank you very much!
]]>From the instructions in this post:
https://webberzone.com/support/knowledgebase/top-10-maintenance-options/
Can you give me the specific code to insert into the function.php file? (sorry I’m not familiar with php)
I want to change from 180 days to 30 days which is enough.
I want to limit the number of databases because 180 days is too much for my website, causing access time to slow down significantly.
And in the wp-config.php file, this line is required for it to work, right? define( ‘DISABLE_WP_CRON’, true );
If set to false will it work?
Thank you author for the great plugin, I’ve been using it for many years now
<font _mstmutation=”1″></font>
]]>We have noticed that today the daily visits are equal to zero on articles where we are certain that there have been readers (other sources).
We have the plugin on other sites and there is no problem. The only difference is that this site is a multisite.
Hi,
I used your widget on various pages in Beaver Builder modules, but at some point, they broke, an error claiming the widget no longer exists – did you change the name a while ago which has confused Beaver Builder?
To get around this problem, I’m trying to use shortcodes, but they aren’t working.
[tptn_list limit="10" daily_range="30" heading="0"]
I use that to give the top 10 for the last 30 days, but instead, it gives the top ten overall since the plugin was installed.
A bigger problem is that I’ve tried to use these for the daily top ten.
[tptn_list limit="10" daily="1" heading="0"]
[tptn_list limit="10"
daily_range
="1" heading="0"]
Neither works. Just like the other shortcode, both of these give the overall top ten, not the top ten in the last 24 hours.
What is going wrong and how can it be fixed, please?
Thanks,
Steve
]]>I am in the process to replace WordPress Popular Posts (which is banned from Kinsta WP hosting) and was very happy to find Top 10! I’m using v3.3.3 (newest as of today).
It works fine in an widget context (“Popular Posts [Top 10]” within a header and footer sidebar), but if i try to use it within a post content, either using “Widgets On Pages”-plugin or using the Top-10 shortcode “tptn_list” directly, a wrong posts listing is generated.
I’ve used: [tptn_list include_cat_ids=”nnn” limit=”20″ heading=”0″ daily=”0″ how_old=”9999″ show_date=”1″ show_excerpt=”1″ disp_list_count=”1″]
=> Instead of limiting all posts regarding cat-id equals/contains “nnn” posts from another category are shown?
My goal is to assure, that ONLY posts with the cat-id “nnn” are used in the listing, aka filtered view (also a post can have other categories additionally). As mentioned: Using “Only from categories (comma-separated list of term taxonomy IDs):” configuration within a widget (e.g. Footer Sidebar), the result is as expected, but not in a post context.
I’ll further research that issue and try to use the Query Monitor plugin, which i’ve not yet tested.
]]>Hello,
Long time. I hope you are well.
I have noticed that the plugin is not tracking properly anymore:
Not sure why. It says that no popular posts today. Please help.
]]>Hi,
This is a strange Warning that appeared WITHOUT touching anything in your widget. I just added a NEW widget from an other plugin and moved it above your’s.
[27-Feb-2024 10:23:38 UTC] PHP Warning: Undefined array key “widget_id” in /home/public_html/wp-content/plugins/top-10/includes/frontend/widgets/class-posts-
widget.php on line 285
Lines 285, same on 356, 357, 350 , 339, 285
Thanks
]]>Hi
I have an issue where the counter does not update when posts are accessed through AJAX using FancyBox. It supposed to track views for posts opened via FancyBox modals, and while the AJAX request seems to be successful (indicating no errors in the console), the view counter for the posts does not reflect the new views.
Here are the details of my implementation and debugging efforts:
wp_ajax_nopriv_tptn_tracker
and wp_ajax_tptn_tracker
actions with the post ID and activate_counter
set to 11
, mirroring the behavior observed when accessing posts directly.update_count
function within the plugin’s class-tracker.php
file shows that the function is called with the correct post ID and activate_counter
. However, the view counter still does not update.response.text()
and logs a success message, but it does not display any response data, suggesting that the server-side handler might not be sending back data as expected.activate_counter
received as 11
in the debug log, indicating that direct access correctly triggers the counter update.I think there is an issue with how AJAX requests are handled or how view counts are updated and cached. How do I ensure that views from AJAX-loaded content are correctly tracked and reflected by the plugin?
]]>I’ve setup a static page for my website (that’s not live yet) and I thought it would be interesting to have a top 10 that slides horizontally as opposed to vertically to save space. After all, it’s a static page and I don’t want too much information to overload the user’s experience. I’ll go back and look up your shortcodes but I don’t remember anything like that. It would be cool.
]]>I am a bit at a loss here. Somehow, the wrong thumbnail is always getting pulled. I selected 250×250 in the settings as thumbnail size and I selected tptn_thumbnail (250×250) as the thumbnail. However, the plugin seems to be pulling the 500×500 thumbnail image, but it is displaying it at 250×250.
Strangely enough, if I select 150×150 it pulls the 250×250 image and displays it at 150×150.
If I select 175×250 it pulls 350×500 while displaying it at 175×250. If I put 350×500 it pulls 525×750 while displaying it at 350×500.
Obviously, pulling the larger image costs extra bandwidth.
I went into public/media.php and tested it all the way up to
$output .= tptn_get_image_html( $postimage, $attr );
When print_r($attr), it displays the correct size (250×250) but when doing print tptn_get_image_html( $postimage, $attr ); it displays the image in the wrong size. All the thumbnails exist in all their respective sizes.
I also regenerated my thumbnails and it didn’t help.
]]>Is there any hook or custom filter to allow exclusions by user agent, IP or other methods?
]]>I’ve just installed this PlugIn, checked the ”?Left thumbnails:?Enabling this option will set the post thumbnail to be before text. Disabling this option will not revert any settings.” option but no thumbnails are showing.
Can anyone please give me a clue what I’m doing wrong.
Thanks
]]>Hi, I’ve submitted this before but never saw the reply and gave up. However I still have this issue.
My live site shows the popular posts without issue. However both my local (mac os) and dev/staging environments (LAMP) are not showing any posts. When I visit the endpoint “/wp-json/top-10/v1/popular-posts/” on the local/dev/staging sites I get an empty page (as opposed to live where I get data). I don’t see anything in the error logs and I don’t have endpoints disabled, I get data for this endpoint /wp-json/wp/v2/posts/
]]>For some reason, the plugin is no longer updating the widget I have embeddded on each page.
I have a Top 20 on a separate page, which updates correctly but the widget with the same options seems to be stuck from over a month ago.
I tried clearing the plugin’s cache but that did not help.
Any other suggestions?
]]>I’m migrating my WP site from one hosting provider to another. Please let me know if there’s a way to import Top 10 statistics from the old install to the new one.
Thanks in advance.
]]>I’ve made a top ten list. But one of the thumbnails is misplaced. In other words, the pictures are NOT in a row.
]]>Hi,
Is it possible to show top10 output horizontaly in a page, using a shortcode? I haven’t been able to do that, it shows always vertically.
Thanks
]]>Top 10 was always working fine.
No, with Envira Gallery version 1.9.8 gallery pages (e.g. https://www.familie-becker-feldmann.de/envira/2017-sofi-und-2018-mofi/) do not display thumbnails any more. Nothing is displayed.
Only way to overcome this, is deactivating “Top 10” – a pity.
Though most probably Envira has added something to cause this conflict (all previous Envira versions work) … it would be great, if there is a hint or bypass here on Top 10.
Thank you very much
]]>Getting hundreds of these warnings in debug.log
[20-Oct-2023 09:42:08 UTC] PHP Warning: Trying to access array offset on value of type null in .../wp-content/plugins/top-10/includes/class-counter.php on line 54
Seems there should be a check if $wp_filters
exists and is an array before accessing $wp_filters['the_content']
.
Top 10 3.3.2, PHP 8.0.x
]]>I’m migrating my site to a completely new host and installation, with new theme and coding. I very much would like to keep Top 10. I wanted to export the count for some 3,500 articles (some as much as 160,000 views). I can see this when I view the Popular Posts page in the plugins’ admin settings.
Yet when I click on “export overall tables” I get:Warning: Cannot modify header information - headers already sent by (output started at /home/customer/www/my-old-site.com/public_html/wp-content/plugins/top-10/includes/admin/class-import-export.php:306) in /home/customer/www/
my-old-site
.com/public_html/wp-content/plugins/top-10/includes/admin/class-import-export.php on line 309
I tried recreating the database keys and rebuilding the tables, but I still get this error.
I tried looking in the WP tables and couldn’t find the Top 10 data.
How can I export a list of all the posts and their view counts?
]]>Hi,
How do I display the taxonomy of popular posts on the Top 10 widget ?
Thanks.
]]>Hi! I use 3.1.3 plugin version with WP 5.6 and observe plugin slowness – it adds to to 2-3 seconds to the page load.
With query monitor I found this is due to SQL requests in the function get_popular_posts()
SELECT?ID, post_title as title, post_type, post_date, post_author, ttt.cntaccess as total_count, SUM(ttd.cntaccess) as daily_count
FROM?wp_top_ten?AS?ttt
INNER?JOIN?wp_posts
ON?ttt.postnumber=ID
LEFT?JOIN?(
SELECT?*
FROM?wp_top_ten_daily?AS?ttd
WHERE?DATE(ttd.dp_date) >=?DATE(‘2023-09-25’)
AND?DATE(ttd.dp_date) <=?DATE(‘2023-09-25’) )?AS?ttd
ON?ttt.postnumber=ttd.postnumber
WHERE?1=1
AND?ttt.blog_id = 1
AND?(wp_posts.post_status = ‘publish’
OR?wp_posts.post_status = ‘inherit’)
AND?(wp_posts.post_type <> ‘revision’ )
GROUP?BY?ID
ORDER?BY?daily_count?DESC
LIMIT?0, 10
I can also see that this function is called twice in page. WP Super Cache and Object cache are installed and object cache hit is around 99% but somehow this requets is out of it.
Can this be optmized / fixed please?
We experience that “Today’s views” is higher than “Total views”? on some posts?
We use Version 3.3.2. We are not sure if the problem started after last update?
]]>I’ve tried your plugin with default [tptn_list], but I see only an empty zone. I’ve tried to add other things, but it not works. I’ve theme Neve FSE (it’s a full block), but also on Twenty Twenty-one not have worked.
Maybe trouble come from version of WordPress; 6.3.
]]>As you are preparing for the next version, I would like to request for a new feature.
From Dashboard>All Posts, we have the opportunity to sort posts based on Total Views, Today’s Views.
But this feature isn’t available for the custom post type. So, I do this by appending query parameter such as&orderby=tptn_total&order=desc
to the URL. Example:
https://thoughtmight.com/wp-admin/edit.php?post_type=quote&orderby=tptn_total&order=desc
If you’re okay to put an extra effort, thanks in advance.
]]>