WordPress.org

Ready to get started?Download WordPress

Forums

Easy Responsive Tabs
[resolved] How to use this in template php file (4 posts)

  1. rajbir4all
    Member
    Posted 6 months ago #

    Hello,

    How can i use this tabs shortcode in template php file.

    Thanks

    http://wordpress.org/plugins/easy-responsive-tabs/

  2. patmatt
    Member
    Posted 6 months ago #

    I have the same question as rajbir4all!!

  3. osCitas Themes
    Member
    Plugin Author

    Posted 6 months ago #

    Hi,

    Yes, you can use the tabs shortcode in template file in the following way

    <?php 
    
    echo do_shortcode('[restabs text="More"][restab title="Description" active="active"]Tab1[/restab][restab title="Gallery"]Gallery[/restab][restab title="Reviews"]<div id="product_comments">Comments</div>[/restab][/restabs]');
    
    ?>

    Thanks

  4. NWTD
    Member
    Posted 6 months ago #

    @osCitasThemes, Is there a way to get this to work with the_content()?

    I tried using your example in a page template for a single post type. One tab is getting the post's excerpt, while another tab is supposed to get the content. The excerpt shows just fine, the content does not.

    Any suggestions?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.