Home Forums Plugin Support WP User Frontend Pro Frontent Pro: How To Show Author's Post Comments Count

This topic is: resolved

This topic contains 5 replies, has 3 voices, and was last updated by  Sekander Badsha 4 years, 10 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22224

    Joe F
    Member
    Post count: 12

    Is it possible to show the author's post comment counts on their dashboard page where frontend lists their posts? If this isn't clear … On the user's dashboard where it lists their posts, I'd like there to be a section in between TITLE and STATUS where it can show the number of comments from other members on that user's posts.

    Possible? Thanks!

    #22255

    Oritro Ahmed
    Spectator
    Post count: 155

    Hello JOE,

    Its obviously possible. You can do it easily if you know about wordpress codex. I can guide you through it.

    Go to wpuf plugin directory. Which Should be located at WPROOT/wp-content/plugins/wp-user-frontend-pro/. There you will find a file named frontend-dashboard.php. Open it in a text editor, Better if your text editor has line numbers. Notepad++ or Sublime text will do the best.

    Go to line number 109, and in the next line, add this <th><?php _e( 'Comments', 'wpuf' ); ?></th>. This is the Table Header of the WPUF Dashboard list. Then go to line number 155, in the next line, add this segment of code,

    <td>
     <?php echo $post->comment_count; ?>
    </td>

    You should be done. For a Better understanding, I am adding image of this to code segment tothat you can understand better.

    #22350

    Joe F
    Member
    Post count: 12

    Beautiful…worked like a charm. Thanks much — awesome addition!

    #22413

    Oritro Ahmed
    Spectator
    Post count: 155

    Glad to help ๐Ÿ™‚

    #24946

    Joe F
    Member
    Post count: 12

    Oritro,

    Thanks again for the prior help!

    Any ideas on the code to add a “page views” column as well to the my submissions page?

    #25281

    Sekander Badsha
    Member
    Post count: 2067

    Hello Joe,
    Can you give me some screenshot about what you're trying to do?

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Frontent Pro: How To Show Author's Post Comments Count’ is closed to new replies.