// Função para o shortcode customizado function custom_tabs_shortcode($atts) { // Define os atributos padrão para o shortcode $atts = shortcode_atts( array( 'count' => 5, // Número de itens por aba, padrão é 5 ), $atts, 'custom_tabs' ); // Número de itens que você quer mostrar $count = intval($atts['count']); // Começo do buffer de saída para capturar o HTML ob_start(); ?>
[fictioneer_latest_stories count="" orderby="views" type="list" terms="none" footer_words="false" footer_comments="true" footer_views="true" fandoms="Tradução" footer_date="false" footer_rating="false"]
[fictioneer_latest_stories count="" orderby="views" type="list" terms="none" footer_words="false" footer_comments="true" footer_views="true" fandoms="Original" footer_date="false" footer_rating="false"]
[fictioneer_latest_stories count="" orderby="comment_count" type="list" terms="none" footer_words="false" footer_comments="true" footer_views="true" fandoms="Tradução" footer_date="false" footer_rating="false"]
[fictioneer_latest_stories count="" orderby="comment_count" type="list" terms="none" footer_words="false" footer_comments="true" footer_views="true" fandoms="Original" footer_date="false" footer_rating="false"]