I just installed the top 10 plugin. I’ve set it to show popular posts back 200 days. It’s only showing 1 post — the one I put up today. I set it to show 7, and obviously the one I just posted isn’t one of the most popular.
What’s the fix?
Plugin Author
Ajay
(@ajay)
@locutus45, you can’t do this currently in the plugin.
That’s a shame.
My website has an older demographic that are not tech savvy. Some of the people are not sure what the numbers in parenthesis mean.
I truly wish I could have it say “views” next to the number.
You created a nice plugin. It’s a shame something simple like my request could not be added/modified.
If you ever do come up with a solution, I would be most interested.
Cheers
Just a thought but could you possibly add ” views” using the CSS :after pseudo class?
Plugin Author
Ajay
(@ajay)
For now, If you want you can edit the plugin to remove the brackets.
https://plugins.trac.wordpress.org/browser/top-10/trunk/top-10.php#L464
I’m adding more filters which allow modification of text, but it will be future versions.
On the after css class, check out:
https://developer.mozilla.org/en-US/docs/Web/CSS/::after
Ajay,
Thank you for replying. I appreciate your help, however, where do I put the css code with regards to your .php file?
I am not a programmer. If someone could put the simple code up here, I’d really appreciate it. I can copy and paste, upload files, and such, but something relatively simple for you guys would take me hours to figure it out, if I even could.
I just want it to say “x number of views” with no parenthesis.
Cheers
Plugin Author
Ajay
(@ajay)
The CSS won’t help because you’re still going to have the brackets. If you’re OK to have the brackets, you could try adding this under the custom styles tab:
.tptn_list_count::after {
content: " number of views";
}
It should display “(x) number of views”
Fabulous, bravo!
I knew there had to be a simple solution. I hate having to re-invent the wheel when it’s not necessary.
I switched it to just “Views”. Worked like a charm. I can live with the parenthesis, for now.
It would be nice to either eliminate the parenthesis all together or include “views” inside of the parenthesis in the future.
Thank you.
Plugin Author
Ajay
(@ajay)
I’ll be adding more filters to the plugin that allow you to manipulate output as you desire by adding functions to your functions.php of the theme.