/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


/* visualizzare i post per utente*/
global $current_user;
    get_currentuserinfo();
    $authorID = $current_user->ID;
        $args = array(
                  'post_type' => 'post',
                  'posts_per_page' => -1,
                  'author' => $authorID
                  );
        $wp_query = new WP_Query($args);


$args = array(
    'post_type' => 'post',
    'post__in' => array_unique( 
         wp_list_pluck( 
            get_comments( array(
                'user_id' => $authorID
                )
            ),       
            'comment_post_ID' 
         )
    ),
);
