Forums

TheThe Tabs and Accordions
[resolved] Can It Show Recent Posts, Recent Comments, Etc.? (5 posts)

  1. davezan
    Member
    Posted 10 months ago #

    Can this plugin show a tabbed menu of like Recent Posts, Recent Comments, etc.? How exactly if so?

  2. thethefly
    Member
    Posted 10 months ago #

    If your theme supports shortcodes for Recent Posts, Recent Comments, etc. you can put them inside the tabs BUT - IMPORTANT!!!! - in this case the tabs MUST be included into your page/post/sidebar NOT BY SHORTCODES but by direct HTML mark up. This is because WP does not parse shortcodes inside shortcodes.

  3. inhouse
    Member
    Posted 8 months ago #

    This is exactly what I'm trying to do. I'd like to display recent posts of 3 categories in 3 separate tabs. How would you use the plugin without a shortcode?

  4. inhouse
    Member
    Posted 7 months ago #

    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; ?>
  5. inhouse
    Member
    Posted 6 months ago #

    I had started another thread trying to figure this out and ended up switching to a different plugin called "WP UI - Tabs, accordions and more". This plugin has a recent posts feature built right in. There are detailed instructions on how to use the shortcode.

Reply

You must log in to post.