Home Forums Plugin Support WP User Frontend Pro Add Column Page Views to Submissions Page

This topic is: resolved

Tagged: , , ,

This topic contains 1 reply, has 2 voices, and was last updated by  Sekander Badsha 4 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24683

    Joe F
    Member
    Post count: 12

    Hello,

    You guys helped me in adding a column to the submissions page to view the comments count by adding the below code to my functions.php:

    ——
    function wpufe_dashboard_change_head( $args ) {
    printf( ‘

    %s

    ‘, __( ‘Comments', ‘wpuf' ) );
    }
    add_action( ‘wpuf_dashboard_head_col', ‘wpufe_dashboard_change_head' );
    function wpufe_dashboard_row_col( $args, $post ) {
    ?>

    < ?php if ( $sub = get_post_meta( $post->ID, ‘subhead', true ) ) {
    echo $sub;
    } else {
    echo $post->comment_count;
    }
    ?>

    #25016

    Sekander Badsha
    Member
    Post count: 2067

    Hello Joe,
    There's a lot of plugins in the wild to get the visit counts of the posts. You may use any of them.

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

The topic ‘Add Column Page Views to Submissions Page’ is closed to new replies.