WordPress.org

Ready to get started?Download WordPress

Forums

Plugin shortcode help? (4 posts)

  1. alecwild
    Member
    Posted 5 years ago #

    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

  2. tslice
    Member
    Posted 5 years ago #

    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.

    http://codex.wordpress.org/Shortcode_API

  3. alecwild
    Member
    Posted 5 years ago #

    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?

  4. alecwild
    Member
    Posted 5 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic