WordPress.org

Ready to get started?Download WordPress

Forums

Top 10 - Popular posts plugin for WordPress
[resolved] How to show post views on the homepage on my site? (7 posts)

  1. harvester_cz
    Member
    Posted 1 year ago #

    Hi, I've been using the plugin before, now I've changed the WP template and can't remember if I modified the template or not, but besides showing the post count on the single view of the post at the bottom, like it is now: http://jivova.g6.cz/2012/10/29/starostka-ignoruje-usneseni-zastupitelstva/

    I also had it below the title of each post beside the Published date and Author name, so you could see right on the homepage the numbers for each posts.

    Can you help me with getting this back?

    http://wordpress.org/extend/plugins/top-10/

  2. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    You will need to edit your template file for the manual install.

    Check Manual Install in the FAQ.
    https://wordpress.org/extend/plugins/top-10/faq/

  3. harvester_cz
    Member
    Posted 1 year ago #

    Ok, can you please help me with the syntax? I'm not very keen on that, I tried it but not successfully. I suppose I should place it in the functions.php somewhere here:

    case 'category':
    $categories = get_the_category_list(', ');
    if(theme_strlen($categories) == 0) break;
    $result[] = '<span class="art-postcategoryicon">' . sprintf(__('<span class="%1$s">Posted in</span> %2$s', THEME_NS), 'categories', get_the_category_list(', ')) . '</span>';
    break;

    so it appears beside the categories.

    Thanks.

  4. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Am not sure about your theme.

    It usually should be in your single.php of the theme

  5. harvester_cz
    Member
    Posted 1 year ago #

    I think that it's not the single.php as it is for viewing the single post, but I want to show it on the homepage where the lastest posts with their excerpts are shown.

  6. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Which theme are you using?

    Do you have the index.php or a home.php in your theme?

    The functions.php which you have above seems to have the right code, but it's difficult to say without seeing the rest of the file

  7. harvester_cz
    Member
    Posted 1 year ago #

    I sent you the theme via email, it is generated in Artisteer.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.