Home Forums Plugin Support WP User Frontend Pro Update — How to add a comment count section in dashboard

This topic is: resolved

Tagged: , , ,

This topic contains 2 replies, has 2 voices, and was last updated by  Joe F 4 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23929

    Joe F
    Member
    Post count: 12

    Hey guys,

    You helped me add a post comment count on the dashboard in the last version but looks like after the new update alot of the code has changed or moved in the frontend-dashboard file. Here's how you helped me last time, but the line numbers are all off.

    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

    < ?php _e( 'Comments', 'wpuf' ); ?>

    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,

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

    How can I add this post comment count to the user dashboard now?

    #23940

    Sk
    Moderator
    Post count: 371

    Hello Joe,

    Please have a look on the documentation. http://docs.wedevs.com/adding-columns-to-dashboard-table/

    Thank you.

    #23985

    Joe F
    Member
    Post count: 12

    Awesome. Works! Thanks!

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

The topic ‘Update — How to add a comment count section in dashboard’ is closed to new replies.