• Is there any way to use Post UI Tabs inside a page template? I need to display the latest news on a home page using tabs, so I have to have content generated dynamically, and my idea was to insert Post UI Tabs shortcodes inside home.php and then fill them with the news article content. Unfortunately, it did not work.

    Here is my code from home.php

    <?php
    echo do_shortcode('[tab name="My tab 1"]My tab 1 content[/tab]');
    echo do_shortcode('[tab name="My tab 2"]My tab 2 content[/tab]');
    echo do_shortcode('[end_tabset]');
    ?>

    And here is a page output:
    [tab name="My tab 1"]My tab 1 content[/tab][tab name="My tab 2"]My tab 2 content[/tab][end_tabset]
    So, it simply prints out the shortcodes.

    What do I do wrong? Is this something to do with add_action() inside put.php that does not register necessary functions to work inside a template file?

    Post UI Tabs is a really great plugin and I love it! Is there any way to make it work inside a page template? My guess is that to copy plugin-generated HTML code from a post page is not enough …

    Thanks in advance to everyone answered!

  • The topic ‘[Plugin: Post UI Tabs] How to use in a template’ is closed to new replies.