ID; // You can set $user_id to any users, but this gets the current users ID. $pagepermalink = get_permalink($post->ID); $beTubeprofile = betube_get_template_url('template-profile.php'); $beTubeEdit = betube_get_template_url('template-edit-post.php'); $beTubeallVideos = betube_get_template_url('template-all-posts.php'); $beTubeallFavourite = betube_get_template_url('template-favorite.php'); $beTubenewPost = betube_get_template_url('template-submit-video.php'); if(isset($_POST['follower'])){ $author_id = $_POST['author_id']; $follower_id = $_POST['follower_id']; echo betube_authors_insert($author_id, $follower_id); } if(isset($_POST['unfollow'])){ $author_id = $_POST['author_id']; $follower_id = $_POST['follower_id']; echo betube_authors_unfollow($author_id, $follower_id); } if(isset($_POST['favorite'])){ $author_id = $_POST['author_id']; $post_id = $_POST['post_id']; echo betube_favorite_insert($author_id, $post_id); } ?> ID); $current_page_id = $page->ID; $betubeProfileIMG = get_user_meta($user_ID, "betube_author_profile_bg", true); if(!empty($betubeProfileIMG)){ $betubeProfileIMG = betube_get_image_url($betubeProfileIMG); } ?>

author author
0 0 0
...

:

ID; echo betubeAllFollowers($userID); ?>

ID; echo betubeAllFollowing($userID); ?>