I’ve tried using another plugin “shortcoder” to place a shortcode inside the Tabs content shortcode. This works to display recent posts; however, the content is not contained within the boundaries of the Tab box. I’m trying to display recent posts in a vertical scrollbox. I would love to enter all this into my page template instead but I don’t know how to do that and can’t find those details on the plugin page. Can @thethefly help? It wasn’t explained in the post above. Thanks a million.
Site Link
Tabs Shortcode
[tabs title="Tabs Group Title" active=1 event="click"]
[tab title="News"][event_recent_posts][/tab]
[tab title="Events"]Second tab content[/tab]
[tab title="Calendar"][event_recent_posts][/tab]
[/tabs]
Shortcode Exec PHP code
$args = array( 'numberposts' => 5, 'offset'=> 0, 'category' => 5 );
$lastposts = get_posts( $args );
foreach($lastposts as $post) : setup_postdata($post); ?>
<h6><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h6>
<?php the_content(); ?>
<?php endforeach; ?>