Page Links Broken In My Most Viewed Section
August 22nd, 2007 by Stephen Cronin (1,042 views)In my last post, I covered how to set up a Most Viewed section in the Sidebar, using Lester Chan’s WP-PostViews plugin. Unfortunately, there was a bug in the version of WP-PostViews that I was using, which broke the link to my DualFeeds plugin page in the Most Viewed section.
The problem was caused by the full permalink rules being applied to URLs for Pages (there was no problem for Posts). For example, the URL for the DualFeeds page in Most Viewed was:
http://www.scratch99.com/2007/08/wordpress-plugin-dualfeeds/
instead of:
http://www.scratch99.com/wordpress-plugin-dualfeeds/
Note the extra /2007/08 in the first URL. The /2007/08 should be added to the URL for all Posts, but should be left out of the URL for Pages.
This means that anyone clicking on the DualFeeds link in my MostViewed section, within the last week or so, would have been greeted with a 404 message. I’m not sure how many people were affected, but apologies for this problem.
This only affected the link in the MostViewed section - external links and the link in the Pages section were unaffected.
I fixed the problem almost as soon as I found it. As it happens, I was using version 1.10 of WP-PostViews and the problem was fixed in version 1.11. Service has returned to normal now.
Tags: widgets, wordpress plugins















I was using WP-PostViews up until just a few days ago. It wasn’t compatible with WP-Cache and I exhaused all of my contacts and requests to get it to work with it.
I now just have my popular posts (a hundred of ‘em) in my sidebar using a comments count query. I plan to expand it into a configurable plugin, but I’ve been lazy when it comes to programming lately. It works for me as is because I added an array to filter out the posts I didn’t want in the list, regardless of their popularity.
I don’t need WP-Cache yet! Hopefully I will have the same problem sometime.
I know there are third-party analytic sites (such as www.clicky.com) that can provide a ‘most popular’ list for you, but I’m not planning to use these services at this stage.
Your solution seems like a good one - the most popular posts are likely to be the ones with the most comments - and comments aren’t affected by WP-Cache.
What do you mean, your individual posts do contain the /2007/08/title that’s what this particular post’s address is.
cratch99.com/2007/08/wordpress-wppostviews-page-links-broken/
Hi Drunk Text,
I was talking about Pages, as opposed to Posts. For example, my About page is:
http://www.scratch99.com/about/
The Most Viewed function would have rendered the URL as
http://www.scratch99.com/2007/05/about/
which doesn’t exist. There was never any problem with Posts, only Pages. Anyway, all fixed now!
Ups I was mixing Posts and Pages up when I wrote this comment.
DT, No Worries…