• alecwild

    (@alecwild)


    Hello,

    I’m using the postTabs plugin, and am having trouble getting *some* shortcodes from other plugins (like nextGen gallery) to work *inside* the postTabs shortcode. Is there a way to execute a shortcode within a shortcode? Where can I fix that?

    Thanks for the help in advance!

    Alec

Viewing 3 replies - 1 through 3 (of 3 total)
  • tslice

    (@tslice)

    Have you read the shortcode api codex?
    I’m not familiar with either shortcode or their usage, but the functionality you’re looking for may not be supported.

    https://codex.www.ads-software.com/Shortcode_API

    Thread Starter alecwild

    (@alecwild)

    Hi,

    Yes, it is supported . . . I tried to input

    function tab_shortcode( $atts, $content = null ) {
    return ‘<span class=”tab”>’ . do_shortcode($content) . ‘</span>’;
    }

    add_action(‘thesis_hook_after_content’, ‘tab_shortcode’, ’11’);

    into my custom_functions.php, but to no avail.

    Can anyone help me with where this code should go?

    Thread Starter alecwild

    (@alecwild)

    Anyone?

    I feel certain that I just need to add the do_shorcode($content) action to the postTabs script. Can anyone tell me how/where to add it?

    You can download the script here:


    postTabs.php

    Please help if you can!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin shortcode help?’ is closed to new replies.