ID; // You can set $user_id to any users, but this gets the current users ID.
$beTubeEdit = $redux_demo['edit'];
$pagepermalink = get_permalink($post->ID);
$beTubeprofile = $redux_demo['profile'];
$beTubeallVideos = $redux_demo['all-ads'];
$beTubeallFavourite = $redux_demo['all-favourite'];
$beTubenewPost = $redux_demo['new_post'];
?>
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);
}
?>
matched_query);
if ( !empty ( $args['paged'] ) && 0 == $paged ) {
$wp_query->set('paged', $args['paged']);
$paged = $args['paged'];
}
$cat_id = get_cat_ID(single_cat_title('', false));
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
global $current_user;
wp_get_current_user();
$user_id = $current_user->ID;
//echo "UserID".$user_id;
$myarray = betube_authors_all_favorite($user_id);
//print_r($myarray);
if(!empty($myarray)){
$args = array(
'post_type' => 'post',
'post__in' => $myarray
);
// The Query
$wp_query = new WP_Query( $args );
$current = -1;
$current2 = 0;
?>
have_posts()) : $wp_query->the_post(); $current++; $current2++; ?>