Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author cubecolour

    (@numeeja)

    I’m not sure what you’re trying to achieve. You can’t add PHP to a directly to WordPress page content in the visual editor or the text editor so that wouldn’t work, but maybe you’ve not used the correct terminology in your question.

    If you mean that you want to add the tabs to a template rather than the content, this is possible, but the best way is to use the shortcodes – these can be included in your php code using using the do_shortcode function.

    example:

    <?php
    
    do_shortcode("[tabby title='First Tab']");
    
    // Functions to add the content of the first tab go here
    
    do_shortcode("[tabby title='Second Tab']");
    
    // Functions to add the content of the second tab go here
    
    do_shortcode("[tabby title='Third Tab']");
    
    // Functions to add the content of the third tab go here
    
    do_shortcode("[tabbyending]");
    
    ?>

    Hi all,
    I have a similar question. I would like to place a shortcode inside of tabby but it seems it is not possible.
    Example:

    [tabby title=”Spiele”]

    [php snippet=1]

    [tabbyending]

    Regards for any hint

    Plugin Author cubecolour

    (@numeeja)

    This doesn’t have anything to do with the subject of this resolved topic which is about using Tabs without shortcodes and the answer.

    Please start a new topic for this unrelated question and give as much detail about what you are trying to achieve including what you have tried already, what you expected to happen and what did happen, plus an open link to the page on your site showing what is happening.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Tabs without shortcodes’ is closed to new replies.