Hi Vlad!
The word “views” is, as the rest of the texts from the plugin, “hardcoded” and cannot be changed directly from the admin section.
However, you can modify WPP’s HTML markup to adjust it to your needs – including changing texts.
Dear Mr. Cabrera,
Thank you for your kind reply. Unfortunately to achieve that is too complicated for me. Never mind. Don’t worry.
Would you be so kind please and advice me how to add the number of views after the title of the posts? Trust that this will be at least little bit easier for me.
Best regards,
Vlad
C’mon, it’s not that hard 😛 Don’t give up without even trying first.
Try this:
- Go to Widgets > WordPress Popular Posts and enable the “Use custom HTML Markup” option under HTML Markup settings.
- Set “Post HTML Markup” to
<li>{thumb} {title} {views} views</li>.
- Hit the Save button to apply changes.
And that’s it! 🙂
Dear Mr. Cabrera,
Sure you are right, I feel the same , if one tries there is higher probability to succeed.
I understood more. Would you be so kind and advice how to add the “number of views” right to the post title, I mean not to the tile in the list but to the tile when one opens the post. Is this possible?
Thank you very much
Vlad
Oh, I see what you mean now. You can to display the number of views next to the title when viewing a post, yes? If so, the wpp_get_views() template tag is what you’re looking for.
Yes correct, right next to the title (ideally also next to the titles on home page if widget allows that). When I inserted the below one to child functions.php it did not work. I know it is because of my zero knowledge to put it on the right place. Would you be so kind and give at least a little hint of what I do wrong please?
Thank you very much
Vlad
<?php
if (function_exists(‘wpp_get_views’))
echo wpp_get_views( get_the_ID() ); // This will only work when used inside the loop!
?>
That code should be somewhere inside single.php 😛
And about the home page, it depends on how your theme is built. You may want to get in touch with the theme developer and consult him/her about it.