Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    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.

    Thread Starter vladik232

    (@vladik232)

    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

    Plugin Author Hector Cabrera

    (@hcabrera)

    C’mon, it’s not that hard 😛 Don’t give up without even trying first.

    Try this:

    1. Go to Widgets > WordPress Popular Posts and enable the “Use custom HTML Markup” option under HTML Markup settings.
    2. Set “Post HTML Markup” to <li>{thumb} {title} {views} views</li>.
    3. Hit the Save button to apply changes.

    And that’s it! 🙂

    Thread Starter vladik232

    (@vladik232)

    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

    Plugin Author Hector Cabrera

    (@hcabrera)

    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.

    Thread Starter vladik232

    (@vladik232)

    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!
    ?>

    Plugin Author Hector Cabrera

    (@hcabrera)

    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.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘change the word – views’ is closed to new replies.