Support » Plugin: Top 10 - Popular posts plugin for WordPress » How to show post views on the homepage on my site?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ajay

    (@ajay)

    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/

    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.

    Plugin Author Ajay

    (@ajay)

    Am not sure about your theme.

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

    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.

    Plugin Author Ajay

    (@ajay)

    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

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to show post views on the homepage on my site?’ is closed to new replies.