Not able run the shortcode. Created to show custom post type pages inside Tabs created by a plugin. I have attached the image for the same with this post.
Here is code I have created.
<?php
function casino_bros() {
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args=array(
'post_type'=>casino,
'posts_per_page' => 5,
'orderby' => 'date',
'paged'=>$paged
);
$wp_query = new WP_Query($args);
/* PageNavi at Top */
if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post();
/* DO STUFF IN THE LOOP */
?>
/* Post Loop */
<?php
endwhile; endif;
wp_reset_query(); ?>
<?php }
add_shortcode( 'livecasinoss', 'casino_bros' );
function some_func()
{
$data=('[livecasinoss]');
return do_shortcode($data);
}
add_shortcode( 'livecasinos', 'some_func' );?>